]> git.tdb.fi Git - libs/gl.git/commit
Upgrade NodePtr to RefPtr
authorMikko Rasa <tdb@tdb.fi>
Thu, 1 Dec 2016 11:29:29 +0000 (13:29 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 1 Dec 2016 11:29:29 +0000 (13:29 +0200)
commit57c1139e4fe21aeca7118b18eb3ba6fa43d7bf90
tree30b7c01f3c7a097b20b4ef3fb094d65f3177886f
parent1a561b4e8d77fd14711b2304152e0b2408a49fdf
Upgrade NodePtr to RefPtr

Allows Nodes to be moved from one Block to another without copying them.
When targeting GLSL 1.30 LegacyConverter has a sequence where it flattens
an interface block and later checks the type of those variables through
their declaration pointer.  This caused memory errors because the
original nodes were destroyed in the flatten operation.
source/programcompiler.cpp
source/programcompiler.h
source/programparser.cpp
source/programparser.h
source/programsyntax.cpp
source/programsyntax.h