]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/arithmetic_assignment.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / arithmetic_assignment.glsl
index c3bcdad070b5f6dc511cca9f73f78054ef69cf33..d0898fbeb61c2b8c3f3eecbd2f199e0102c28648 100644 (file)
@@ -25,6 +25,8 @@ void main()
        frag_color = vec4(color, 1.0);
 }
 
+// Target API: OpenGL
+
 /* Expected output: vertex
 layout(location=0) uniform mat4 mvp;
 layout(location=0) in vec4 position;
@@ -37,6 +39,7 @@ void main()
   light = normal.z;
   _vs_out_texcoord = texcoord;
   gl_Position = mvp*position;
+  gl_Position.z = gl_Position.z*2.0-gl_Position.w;
 }
 */