mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
OGL: Disable clip distance on when not in a game-like state.
This commit is contained in:
parent
9596ec8971
commit
6e2052fae6
@ -1663,6 +1663,8 @@ void Renderer::ResetAPIState()
|
|||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
if (GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGL)
|
if (GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGL)
|
||||||
glDisable(GL_COLOR_LOGIC_OP);
|
glDisable(GL_COLOR_LOGIC_OP);
|
||||||
|
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||||
|
glDisable(GL_CLIP_DISTANCE0);
|
||||||
glDepthMask(GL_FALSE);
|
glDepthMask(GL_FALSE);
|
||||||
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||||
}
|
}
|
||||||
@ -1671,6 +1673,8 @@ void Renderer::RestoreAPIState()
|
|||||||
{
|
{
|
||||||
// Gets us back into a more game-like state.
|
// Gets us back into a more game-like state.
|
||||||
glEnable(GL_SCISSOR_TEST);
|
glEnable(GL_SCISSOR_TEST);
|
||||||
|
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||||
|
glEnable(GL_CLIP_DISTANCE0);
|
||||||
SetGenerationMode();
|
SetGenerationMode();
|
||||||
BPFunctions::SetScissor();
|
BPFunctions::SetScissor();
|
||||||
SetColorMask();
|
SetColorMask();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user