]> git.tdb.fi Git - libs/gl.git/commit
Add push_back_nocopy to NodeContainer for clarity
authorMikko Rasa <tdb@tdb.fi>
Tue, 16 Mar 2021 21:51:21 +0000 (23:51 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 16 Mar 2021 21:51:21 +0000 (23:51 +0200)
commitd4b8a3f67c1f7184124bf95caee7e36ae8d6c82a
tree1bcd0ad1d39f060274999f062c146de874e81aba
parentfb5f83c2e3f8f8a6a6444a33bec15e9477a487d1
Add push_back_nocopy to NodeContainer for clarity

It's not immediately obvious that pushing null and then assigning avoids
cloning the node.
source/glsl/generate.cpp
source/glsl/optimize.cpp
source/glsl/syntax.h