Files
third_party_mesa3d/tests/function-05.glsl
Kenneth Graunke 67a092ae09 Ensure that both parameter lists are the same length in function overloading.
Fixes new test function-05.glsl, where the second function has matching
parameter types, but less of them.
2010-04-21 15:36:36 -07:00

27 lines
302 B
GLSL

/* PASS */
vec4 foo(in float x, in float y, float z, float w)
{
vec4 v;
v.x = x;
v.y = y;
v.z = z;
v.w = w;
return v;
}
vec4 foo(in float x)
{
vec4 v;
v.x = x;
v.y = x;
v.z = x;
v.w = x;
}
void main()
{
gl_Position = foo(1.0, 1.0, 1.0, 0.0);
gl_Position = foo(2.0);
}