MAINT-6286 Viewer 4.0.3.312680 ignores settings for Shaders in Graphics Preferences for ATI Radeon HD 3800 Series graphics card

meow-7.2.2
ruslantproductengine 2016-04-12 19:29:35 +03:00
parent c7e2c496ab
commit 48016ff54b
1 changed files with 1 additions and 0 deletions

View File

@ -348,6 +348,7 @@ void LLGLSLShader::unloadInternal()
glGetAttachedObjectsARB(mProgramObject, sizeof(obj)/sizeof(obj[0]), &count, obj);
for (GLsizei i = 0; i < count; i++)
{
glDetachObjectARB(mProgramObject, obj[i]);
glDeleteObjectARB(obj[i]);
}