]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/dead_loop_removal.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / dead_loop_removal.glsl
index ee5c0360df19cb213f478249b096ba97ce8f22a8..eb5f78c9306061336652c88009f2e9f1a8de937e 100644 (file)
@@ -28,6 +28,8 @@ void main()
        frag_color = vec4(color, 1.0);
 }
 
+// Target API: OpenGL
+
 /* Expected output: vertex
 layout(location=0) uniform mat4 model_matrix;
 layout(location=4) uniform mat4 vp_matrix;
@@ -35,6 +37,7 @@ layout(location=0) in vec4 position;
 void main()
 {
   gl_Position = vp_matrix*model_matrix*position;
+  gl_Position.z = gl_Position.z*2.0-gl_Position.w;
 }
 */