bgfx/3rdparty/glsl-optimizer/tests/fragment/bug-loop-null-from-in.txt

10 lines
146 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
void main() {
float a = 0.0;
int k = 0;
for (int i = 0; i < 3; ++i)
a += 1.0;
for ( ; k < 3; ++k)
a += 3.0;
gl_FragColor = vec4(a);
}