X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=tests%2Fglsl%2Fternary_operator.glsl;h=d3844af853626cd2b0ffb700e15923237fe3c4b1;hp=1a1a09891e0997bb4ca4c44b0683db620fcbef0c;hb=7b03ca83ca6c48b9f8c3f77c13760e7f87e9632d;hpb=9cfccf5c4e366e033cfd5eebf8955d2b13202b46 diff --git a/tests/glsl/ternary_operator.glsl b/tests/glsl/ternary_operator.glsl index 1a1a0989..d3844af8 100644 --- a/tests/glsl/ternary_operator.glsl +++ b/tests/glsl/ternary_operator.glsl @@ -32,7 +32,7 @@ uniform Transform } transform; layout(location=0) in vec4 position; layout(location=1) in vec2 texcoord; -out vec2 _vs_out_texcoord; +layout(location=0) out vec2 _vs_out_texcoord; void main() { _vs_out_texcoord = texcoord; @@ -46,9 +46,9 @@ uniform Colors vec4 color1; vec4 color2; }; -uniform sampler2D mask; +layout(location=0) uniform sampler2D mask; layout(location=0) out vec4 frag_color; -in vec2 _vs_out_texcoord; +layout(location=0) in vec2 _vs_out_texcoord; void main() { frag_color = texture(mask, _vs_out_texcoord).r>0.5?color1:color2;