]> git.tdb.fi Git - libs/gl.git/commit
Refactor scope management
authorMikko Rasa <tdb@tdb.fi>
Tue, 23 Feb 2021 22:11:43 +0000 (00:11 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 23 Feb 2021 22:11:43 +0000 (00:11 +0200)
commit14b46ca054f563d3d23073633feafc4a6fcc4e05
tree379d48f2db5bb8ad3e956de194bde2d64d30e190
parentfcec789963b25a49a187e2df248d80e1287ebc44
Refactor scope management

TraversingVisitor now takes care of maintaining current_block correctly
for functions and loops.  This fixes an issue where InterfaceGenerator
was treating function in/out parameters as global interface variables.
Now there's a different bug where it generates global interface variables
for them.
source/glsl/generate.cpp
source/glsl/generate.h
source/glsl/visitor.cpp
source/glsl/visitor.h