X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=tests%2Fglsl%2Fgeometry_passthrough.glsl;h=95e5ecbdb8289a1bea57235f4faa4ec4e483757b;hp=9acfe83ef0303eb7c30869e1ab118e5611422661;hb=7b03ca83ca6c48b9f8c3f77c13760e7f87e9632d;hpb=9cfccf5c4e366e033cfd5eebf8955d2b13202b46 diff --git a/tests/glsl/geometry_passthrough.glsl b/tests/glsl/geometry_passthrough.glsl index 9acfe83e..95e5ecbd 100644 --- a/tests/glsl/geometry_passthrough.glsl +++ b/tests/glsl/geometry_passthrough.glsl @@ -29,7 +29,7 @@ void main() /* Expected output: vertex layout(location=0) in vec4 position; -out vec2 texcoord; +layout(location=0) out vec2 texcoord; void main() { texcoord = position.xy*0.5+0.5; @@ -40,8 +40,8 @@ void main() /* Expected output: geometry layout(triangles) in; layout(triangle_strip, max_vertices=3) out; -in vec2 texcoord[]; -out vec2 _gs_out_texcoord; +layout(location=0) in vec2 texcoord[]; +layout(location=0) out vec2 _gs_out_texcoord; void main() { for(int i = 0; i<3; ++i) @@ -54,9 +54,9 @@ void main() */ /* Expected output: fragment -uniform sampler2D tex; +layout(location=0) uniform sampler2D tex; layout(location=0) out vec4 frag_color; -in vec2 _gs_out_texcoord; +layout(location=0) in vec2 _gs_out_texcoord; void main() { frag_color = texture(tex, _gs_out_texcoord);