commit | 6333005f7aea3e5d1d86a5c47b3fa2a1ed2f3ff0 | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Sat Jan 10 11:40:20 2009 -0700 |
committer | Brian Paul <brianp@vmware.com> | Sat Jan 10 11:40:20 2009 -0700 |
tree | e366b0c255dc07f9c6b8fea4c3ead1bd1a6aae7c | |
parent | 1d352b42a106ed0c3cd0831fa681d07794b7ff3d [diff] |
glsl: force creation of new scope for for-loop body Fixes regression in progs/demos/convolution.c due to loop unrolling. This also allows the following to be compiled correctly: for (int i = 0; i < n; i++) { int i; ... } This fix is a bit of a hack, however. The better fix would be to change the slang_shader.syn grammar. Will revisit that...