ogl: also restore logic op for util shaders
This commit is contained in:
parent
e29de302a6
commit
cd7f787627
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue