]> git.tdb.fi Git - libs/gl.git/commit
Rearrange expression node replacement
authorMikko Rasa <tdb@tdb.fi>
Sat, 6 Mar 2021 12:27:16 +0000 (14:27 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 6 Mar 2021 12:27:16 +0000 (14:27 +0200)
commitcb8ee1f5ea24a5f7b561fc88d4ff5af3ae364038
tree0b2fe716922464687ce748ec2ff5ac3526d5fd0b
parent6d11ee7d6137117f441951615cd4cde4d59bf968
Rearrange expression node replacement

Rather than every expression visiting function clearing the replacement
result, clear it in the replacement function both before and after.  This
is more compact and less prone to forgetting it from somewhere.
source/glsl/generate.cpp
source/glsl/generate.h
source/glsl/optimize.cpp