X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=tests%2Fglsl%2Freferenced_but_unassigned_output.glsl;h=5b0e00d12ef959a25791d6503093ea71b72f3449;hp=aabff0892a2d4aa54b8286a026f8c969497fd18a;hb=7b03ca83ca6c48b9f8c3f77c13760e7f87e9632d;hpb=9cfccf5c4e366e033cfd5eebf8955d2b13202b46 diff --git a/tests/glsl/referenced_but_unassigned_output.glsl b/tests/glsl/referenced_but_unassigned_output.glsl index aabff089..5b0e00d1 100644 --- a/tests/glsl/referenced_but_unassigned_output.glsl +++ b/tests/glsl/referenced_but_unassigned_output.glsl @@ -22,13 +22,13 @@ void main() } /* Expected output: vertex -uniform mat4 projection; -out vec4 eye_vertex; +layout(location=0) uniform mat4 projection; +layout(location=0) out vec4 eye_vertex; out VertexOut { vec4 color; }; -out float alpha; +layout(location=1) out float alpha; void main() { gl_Position = projection*eye_vertex; @@ -42,7 +42,7 @@ in VertexOut { vec4 color; }; -in float alpha; +layout(location=1) in float alpha; void main() { frag_color = vec4(color.rgb, alpha);