Partially undo d536fd19aa9d as it causes OpenGL error: glDeleteObjectARB - GL_INVALID_VALUE

meow-7.2.2
Ansariel 2017-03-18 22:22:54 +01:00
parent 824857c46e
commit fa8c420112
1 changed files with 5 additions and 0 deletions

View File

@ -352,6 +352,11 @@ void LLGLSLShader::unloadInternal()
for (GLsizei i = 0; i < count; i++)
{
glDetachObjectARB(mProgramObject, obj[i]);
// <FS:Ansariel> OpenGL error: glDeleteObjectARB - GL_INVALID_VALUE
#if !LL_DARWIN
if (glIsProgramARB(obj[i]))
#endif
// </FS:Ansariel>
glDeleteObjectARB(obj[i]);
}