bgfx/3rdparty/glsl-optimizer/tests/fragment/bug-inline-names-in.txt

20 lines
172 B
Text
Raw Normal View History

2012-10-07 23:41:18 -04:00
float foo (float v)
{
float a, b;
a = v;
{
float a;
a = sin(v);
b = a;
}
a += b;
return a;
}
varying float vv;
void main()
{
gl_FragColor = vec4(foo(vv));
}