]> git.tdb.fi Git - libs/gl.git/commit
Fix scoping of GLSL loop variables and function parameters
authorMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 02:31:35 +0000 (04:31 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 03:02:28 +0000 (05:02 +0200)
commit488ffa4e7136cb163004befa67f20f553bc82f2e
tree0b7cc5f5ba179a24cf2274f4bf7a82c219442206
parentab5f2e6f1ddd35f8f117460530d76c0ba0c9bc87
Fix scoping of GLSL loop variables and function parameters

TraversingVisitor visits those before the body, so they were being
inserted into the enclosing scope's variables map.
source/glsl/generate.cpp
source/glsl/generate.h