From: Steinar H. Gunderson Date: Thu, 28 Dec 2017 20:05:27 +0000 (+0100) Subject: Fix the uniform name for the compute shader output. (It would always be 0 by accident... X-Git-Tag: 1.6.0~19 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=c6a0f381cca8ec937ef046e0ef0d62156fb1d7be Fix the uniform name for the compute shader output. (It would always be 0 by accident anyway, but it is nice to have it cleaner.) --- diff --git a/footer.comp b/footer.comp index c4d1305..17175d9 100644 --- a/footer.comp +++ b/footer.comp @@ -36,8 +36,8 @@ void cs_output(ivec2 coord, vec4 val) #endif #if FLIP_ORIGIN - coord.y = imageSize(outbuf).y - coord.y - 1; + coord.y = imageSize(tex_outbuf).y - coord.y - 1; #endif - imageStore(outbuf, coord, val); + imageStore(tex_outbuf, coord, val); } diff --git a/header.comp b/header.comp index dc2fd08..47f1315 100644 --- a/header.comp +++ b/header.comp @@ -4,7 +4,7 @@ #extension GL_ARB_shader_image_size : enable // FIXME this needs to be auto-output or something -uniform restrict writeonly image2D outbuf; +uniform restrict writeonly image2D tex_outbuf; // Defined in footer.comp. vec4 tex2D(sampler2D s, vec2 coord);