X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=demo_prior;a=blobdiff_plain;f=src%2Fpost.c;h=994c93e12c16f674861cf3070e731e2596896a66;hp=c834073f6336216b494c492d56fcd98f05f5b6c7;hb=7f33f4df3bdd41375f215548adc8016a55f03472;hpb=8e783a58d1e21ace04fd6d7ed00158e65bd78040 diff --git a/src/post.c b/src/post.c index c834073..994c93e 100644 --- a/src/post.c +++ b/src/post.c @@ -151,13 +151,13 @@ void overlay_tex(struct texture *tex, float alpha) void vignette(float r, float g, float b, float offs, float sharp) { glUseProgram(sdr_vgn); - if(vgn_uloc_color) { + if(vgn_uloc_color >= 0) { glUniform3f(vgn_uloc_color, r, g, b); } - if(vgn_uloc_offs) { + if(vgn_uloc_offs >= 0) { glUniform1f(vgn_uloc_offs, offs); } - if(vgn_uloc_sharp) { + if(vgn_uloc_sharp >= 0) { glUniform1f(vgn_uloc_sharp, sharp); } overlay(0, 1.0, 1.0);