mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 11:56:48 +01:00
Only delete this buffer if we support it.
This commit is contained in:
parent
7aad45658e
commit
ddd4360d6d
@ -186,11 +186,14 @@ namespace OGL
|
|||||||
iter->second.Destroy();
|
iter->second.Destroy();
|
||||||
pshaders.clear();
|
pshaders.clear();
|
||||||
|
|
||||||
|
if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
|
||||||
|
{
|
||||||
glBindBuffer(GL_UNIFORM_BUFFER, 0);
|
glBindBuffer(GL_UNIFORM_BUFFER, 0);
|
||||||
glDeleteBuffers(1, &s_ps_vs_ubo);
|
glDeleteBuffers(1, &s_ps_vs_ubo);
|
||||||
s_ps_vs_ubo = 0;
|
s_ps_vs_ubo = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void GetProgramShaderId(PROGRAMUID *uid, GLuint _v, GLuint _p)
|
void GetProgramShaderId(PROGRAMUID *uid, GLuint _v, GLuint _p)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user