]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/function_overloading.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / function_overloading.glsl
index a44c00d4459fe1bce58e4fb680b46bed03315507..411776b648392921dc486c425bb56358925ebe77 100644 (file)
@@ -29,6 +29,8 @@ void main()
        frag_color = srgb_to_linear(texture(tex, texcoord));
 }
 
+// Target API: OpenGL
+
 /* Expected output: vertex
 layout(location=0) uniform mat4 mvp;
 layout(location=0) in vec4 position;
@@ -38,6 +40,7 @@ void main()
 {
   _vs_out_texcoord = texcoord;
   gl_Position = mvp*position;
+  gl_Position.z = gl_Position.z*2.0-gl_Position.w;
 }
 */