]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/complex_constant_condition_removal.glsl
Allocate locations to interface variables
[libs/gl.git] / tests / glsl / complex_constant_condition_removal.glsl
index 8a9d96ac5c77581cee1f4e0536a97b254be19a6b..4f7819b9564f85b26358da86773d97e5e5fbc2f0 100644 (file)
@@ -15,7 +15,7 @@ void main()
 layout(location=0) out vec4 frag_color;
 void main()
 {
-       if(lod+bias<threshold)
+       if(!(lod+bias>threshold))
                frag_color = color;
        else
                frag_color = vec4(1.0);
@@ -24,7 +24,7 @@ void main()
 /* Expected output: vertex
 layout(location=0) in vec4 position;
 layout(location=1) in vec4 color;
-out vec4 _vs_out_color;
+layout(location=0) out vec4 _vs_out_color;
 void main()
 {
        gl_Position = position;
@@ -34,7 +34,7 @@ void main()
 
 /* Expected output: fragment
 layout(location=0) out vec4 frag_color;
-in vec4 _vs_out_color;
+layout(location=0) in vec4 _vs_out_color;
 void main()
 {
        frag_color = _vs_out_color;