From cd7f787627f3cb89ac285619b83c803fe9c8f64c Mon Sep 17 00:00:00 2001 From: degasus Date: Mon, 9 Sep 2013 23:21:56 +0200 Subject: [PATCH] ogl: also restore logic op for util shaders --- Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 1839bca68a..5c4073fb0f 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -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); } @@ -1646,6 +1649,7 @@ void Renderer::RestoreAPIState() SetColorMask(); SetDepthMode(); SetBlendMode(true); + SetLogicOpMode(); VertexShaderManager::SetViewportChanged(); #ifndef USE_GLES3