blob: 6aaeb5c813972755ed7348a15805eae4f39a2fa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
[require]
GLSL >= 1.20
/* Test varying matrix whose column number greater than the row number.
* This gets assertion with i965 driver of 2010-08-22.
*/
[vertex shader]
#version 120
uniform vec2 col0;
varying mat3x2 var;
void main()
{
gl_Position = gl_Vertex;
var = mat3x2(0.0, 1.0, 0.0, 0.0, 0.0, 0.0);
}
[fragment shader]
#version 120
varying mat3x2 var;
void main()
{
gl_FragColor = vec4(var * vec3(1.0, 0.0, 0.0), 0.0, 0.0);
}
[test]
draw rect -1 -1 2 2
probe all rgba 0.0 1.0 0.0 0.0
|