]> git.tdb.fi Git - libs/gl.git/commit
Better way to deal with program-owned shaders
authorMikko Rasa <tdb@tdb.fi>
Sat, 11 Aug 2012 13:36:30 +0000 (16:36 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 11 Aug 2012 13:36:30 +0000 (16:36 +0300)
commit0646b330ffa9ea7fd77e2078257499b1d58ac0f7
treed0b7204cf28604bbe276d077623fa262b9105e6e
parent6aad00e0661dd515c0bc5a6ca05215bf6718bc75
Better way to deal with program-owned shaders

Track which shaders exactly are owned by the program rather than having
just a single flag.  This prevents double-free problems if a program
contains both owned and non-owned shaders, as might be the case with the
transform feature.
source/program.cpp
source/program.h