summaryrefslogtreecommitdiff
path: root/src/glsl/tests/function-04.glsl
blob: dfc0d2b7a6cf1ef1ecfd88517c5de467adc04e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* FAIL - type mismatch in assignment */

vec3 foo(float x, float y, float z)
{
  vec3 v;
  v.x = x;
  v.y = y;
  v.z = z;
  return v;
}

void main()
{
  gl_Position = foo(1.0, 1.0, 1.0);
}