bgfx/3rdparty/glsl-optimizer/tests/fragment/bug-loop-null-from-in.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

9 lines
146 B
Text

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);
}