Only delete this buffer if we support it.
This commit is contained in:
parent
fe6fb55389
commit
73c3f198f4
|
@ -186,10 +186,13 @@ namespace OGL
|
|||
iter->second.Destroy();
|
||||
pshaders.clear();
|
||||
|
||||
if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
|
||||
{
|
||||
glBindBuffer(GL_UNIFORM_BUFFER, 0);
|
||||
glDeleteBuffers(1, &s_ps_vs_ubo);
|
||||
s_ps_vs_ubo = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GetProgramShaderId(PROGRAMUID *uid, GLuint _v, GLuint _p)
|
||||
|
|
Loading…
Reference in New Issue