Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ogl: also restore logic op for util shaders
  • Loading branch information
degasus committed Sep 9, 2013
1 parent e29de30 commit cd7f787
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
Expand Up @@ -1633,6 +1633,9 @@ void Renderer::ResetAPIState()
glDisable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE);
glDisable(GL_BLEND);
#ifndef USE_GLES3
glDisable(GL_COLOR_LOGIC_OP);
#endif
glDepthMask(GL_FALSE);
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
}
Expand All @@ -1646,6 +1649,7 @@ void Renderer::RestoreAPIState()
SetColorMask();
SetDepthMode();
SetBlendMode(true);
SetLogicOpMode();
VertexShaderManager::SetViewportChanged();

#ifndef USE_GLES3
Expand Down

0 comments on commit cd7f787

Please sign in to comment.