]> git.tdb.fi Git - libs/gl.git/commit
Alter the working logic of Bufferable to avoid some problems
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 07:53:56 +0000 (10:53 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 07:53:56 +0000 (10:53 +0300)
commitf6e51c2f771726eec73b07824ebde2cf8bd522f0
treea8b68a2165a0e17ac25c2c370a37b90f1ecb2900
parent73fd6d13b8e68b2aeec8e5c85227cf361fdb467e
Alter the working logic of Bufferable to avoid some problems

It was possible for the buffer data to be updated without going through
the dirty check in UniformBlock::apply, leaving the UniformBlock with a
null buf_range and resulting in a segfault.
source/bufferable.cpp
source/bufferable.h
source/uniformblock.cpp
source/uniformblock.h