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:
@@ -183,6 +183,11 @@ void VertexProgram::apply(State& state) const
|
||||
}
|
||||
}
|
||||
|
||||
void VertexProgram::resizeGLObjectBuffers(unsigned int maxSize)
|
||||
{
|
||||
_vertexProgramIDList.resize(maxSize);
|
||||
}
|
||||
|
||||
void VertexProgram::releaseGLObjects(State* state) const
|
||||
{
|
||||
if (!state) const_cast<VertexProgram*>(this)->dirtyVertexProgramObject();
|
||||
|
||||
Reference in New Issue
Block a user