Only delete this buffer if we support it.

This commit is contained in:
Ryan Houdek 2011-12-16 23:37:22 -06:00 committed by Sonicadvance1
parent 7aad45658e
commit ddd4360d6d
1 changed files with 6 additions and 3 deletions

View File

@ -186,9 +186,12 @@ namespace OGL
iter->second.Destroy(); iter->second.Destroy();
pshaders.clear(); pshaders.clear();
glBindBuffer(GL_UNIFORM_BUFFER, 0); if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
glDeleteBuffers(1, &s_ps_vs_ubo); {
s_ps_vs_ubo = 0; glBindBuffer(GL_UNIFORM_BUFFER, 0);
glDeleteBuffers(1, &s_ps_vs_ubo);
s_ps_vs_ubo = 0;
}
} }
} }