]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/arithmetic_assignment.glsl
Fix some errors in test cases
[libs/gl.git] / tests / glsl / arithmetic_assignment.glsl
index adb2a0cbc99493c46738453c333a8b60ba3c3ac6..d6c48ad89152909634f027c413ac1238fc4c3a27 100644 (file)
@@ -18,7 +18,7 @@ void main()
 out vec4 frag_color;
 void main()
 {
-       vec3 color = texture(tex, texcoord);
+       vec3 color = texture(tex, texcoord).rgb;
        color *= tint;
        color *= light;
        color += ambient;
@@ -49,7 +49,7 @@ in vec2 _vs_out_texcoord;
 in float light;
 void main()
 {
-  vec3 color = texture(tex, _vs_out_texcoord);
+  vec3 color = texture(tex, _vs_out_texcoord).rgb;
   color *= tint;
   color *= light;
   color += ambient;