From Jannik Heller , GL object deletion fix.
"This submission changes deleteGLObject calls to scheduleGLObjectForDeletion, to ensure that the actual deletion happens from the correct thread (the graphics thread). This fixes the leak I reported in http://forum.openscenegraph.org/viewtopic.php?t=15567 , and possibly also http://forum.openscenegraph.org/viewtopic.php?t=15564."
This commit is contained in:
@@ -464,7 +464,7 @@ Shader::PerContextShader::PerContextShader(const Shader* shader, unsigned int co
|
||||
|
||||
Shader::PerContextShader::~PerContextShader()
|
||||
{
|
||||
osg::get<GLShaderManager>(_contextID)->deleteGLObject(_glShaderHandle);
|
||||
osg::get<GLShaderManager>(_contextID)->scheduleGLObjectForDeletion(_glShaderHandle);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user