Added Object::resizeGLObjectBuffers(uint) method to help improve the ability
to change the number of active graphics contexts on the fly during an applications life.
This commit is contained in:
@@ -1295,6 +1295,11 @@ void Texture::compileGLObjects(State& state) const
|
||||
apply(state);
|
||||
}
|
||||
|
||||
void Texture::resizeGLObjectBuffers(unsigned int maxSize)
|
||||
{
|
||||
_textureObjectBuffer.resize(maxSize);
|
||||
}
|
||||
|
||||
void Texture::releaseGLObjects(State* state) const
|
||||
{
|
||||
if (!state) const_cast<Texture*>(this)->dirtyTextureObject();
|
||||
|
||||
Reference in New Issue
Block a user