]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/member_assignment.glsl
Block further inlining of a variable after component assignment
[libs/gl.git] / tests / glsl / member_assignment.glsl
index 8444cfcad76eee26845efe554fde55167967c383..77451db0b77c0e188b3e9bc1ecf6df07767289a6 100644 (file)
@@ -1,9 +1,8 @@
 #pragma MSP stage(vertex)
 void main()
 {
-       vec4 p;
+       vec4 p = vec4(0.0);
        p.x = 1.0;
-       p.y = 0.0;
        p.z = 2.0;
        p.w = 1.0;
        gl_Position = p;
@@ -12,9 +11,8 @@ void main()
 /* Expected output: vertex
 void main()
 {
-       vec4 p;
+       vec4 p = vec4(0.0);
        p.x = 1.0;
-       p.y = 0.0;
        p.z = 2.0;
        p.w = 1.0;
        gl_Position = p;