ogl: also restore logic op for util shaders

This commit is contained in:
degasus 2013-09-09 23:21:56 +02:00
parent e29de302a6
commit cd7f787627
1 changed files with 4 additions and 0 deletions

View File

@ -1633,6 +1633,9 @@ void Renderer::ResetAPIState()
glDisable(GL_DEPTH_TEST); glDisable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE); glDisable(GL_CULL_FACE);
glDisable(GL_BLEND); glDisable(GL_BLEND);
#ifndef USE_GLES3
glDisable(GL_COLOR_LOGIC_OP);
#endif
glDepthMask(GL_FALSE); glDepthMask(GL_FALSE);
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
} }
@ -1646,6 +1649,7 @@ void Renderer::RestoreAPIState()
SetColorMask(); SetColorMask();
SetDepthMode(); SetDepthMode();
SetBlendMode(true); SetBlendMode(true);
SetLogicOpMode();
VertexShaderManager::SetViewportChanged(); VertexShaderManager::SetViewportChanged();
#ifndef USE_GLES3 #ifndef USE_GLES3