]> git.tdb.fi Git - libs/gl.git/commit
Don't modify the target block's variable map from InlineContentInjector
authorMikko Rasa <tdb@tdb.fi>
Tue, 16 Mar 2021 09:38:55 +0000 (11:38 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 16 Mar 2021 09:54:12 +0000 (11:54 +0200)
commit499c0515cde44b304d131ac7ac3b2030c9dbe11c
treebd5f1ceceef2965e201b190c6a53fec48819f77e
parentb7f0ed12892dbf640ae944d5a76fb5aa01407ba7
Don't modify the target block's variable map from InlineContentInjector

This felt hacky, and also seemed wrong since the variable map contains
the original names of the variables, not new ones.  Instead avoid
inlining more than one function per pass into any given function.
source/glsl/optimize.cpp
source/glsl/optimize.h