]> git.tdb.fi Git - libs/gl.git/commit
Unbind things if they are deleted while current
authorMikko Rasa <tdb@tdb.fi>
Fri, 26 Sep 2014 15:00:18 +0000 (18:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 26 Sep 2014 15:00:18 +0000 (18:00 +0300)
commit0ef8e620a008e92069b0dd9ae4e972bc69430fc7
tree6188e022f69d49ceafa7d5bf16ab7b337c5f9226
parent41264797bc55f27411555b3c217a80c791154afc
Unbind things if they are deleted while current

Failing to do so can lead to all sorts of stale-state issues, especially
if a newly created thing happens to get the exact same address as the
just deleted one.
12 files changed:
source/bindable.h
source/buffer.cpp
source/buffer.h
source/light.cpp
source/light.h
source/texenv.cpp
source/texenv.h
source/texgen.cpp
source/texgen.h
source/texture.cpp
source/vertexarray.cpp
source/vertexarray.h