]> 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 5a2c588f07b9b76df91334be57a058ccf0198734..4f7819b9564f85b26358da86773d97e5e5fbc2f0 100644 (file)
@@ -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;