]> git.tdb.fi Git - libs/gl.git/commit - source/glsl/optimize.cpp
Rewrite syntax tree modifications
authorMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 02:20:32 +0000 (04:20 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 03:02:28 +0000 (05:02 +0200)
commitab5f2e6f1ddd35f8f117460530d76c0ba0c9bc87
treeaf3b529942350e02e7807601beeccd200dfaeded
parent947bb7477205c038aa1804b84452cddd2108550a
Rewrite syntax tree modifications

BlockModifier left dangling pointers in various variable maps, which
started causing trouble when I wanted to print out the entire AST.
NodeRemover is now used for all removal operations and it properly
handles the maps.
source/glsl/compatibility.cpp
source/glsl/compatibility.h
source/glsl/generate.cpp
source/glsl/generate.h
source/glsl/optimize.cpp
source/glsl/optimize.h
source/glsl/visitor.cpp
source/glsl/visitor.h