]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix a type error in a test case
authorMikko Rasa <tdb@tdb.fi>
Fri, 5 Mar 2021 23:04:58 +0000 (01:04 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 5 Mar 2021 23:04:58 +0000 (01:04 +0200)
tests/glsl/expression_inline_iteration.glsl

index 20136ca40ef66e003f0dedca4a9efa76872fac35..3ad81bc8cdededa4605b531ec203c2115eb5f2d5 100644 (file)
@@ -3,7 +3,7 @@ layout(location=0) in vec4 position;
 layout(location=1) in vec3 direction;
 void main()
 {
-       vec4 p = position.xyz;
+       vec3 p = position.xyz;
        int step = -1;
        for(int i=0; i<10; ++i)
        {
@@ -21,7 +21,7 @@ layout(location=0) in vec4 position;
 layout(location=1) in vec3 direction;
 void main()
 {
-       vec4 p = position.xyz;
+       vec3 p = position.xyz;
        int step = -1;
        for(int i=0; i<10; ++i)
        {