mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +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);
|
||||
if (GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGL)
|
||||
glDisable(GL_COLOR_LOGIC_OP);
|
||||
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||
glDisable(GL_CLIP_DISTANCE0);
|
||||
glDepthMask(GL_FALSE);
|
||||
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.
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||
glEnable(GL_CLIP_DISTANCE0);
|
||||
SetGenerationMode();
|
||||
BPFunctions::SetScissor();
|
||||
SetColorMask();
|
||||
|
Loading…
x
Reference in New Issue
Block a user