diff --git a/gfx_es2/gl_state.cpp b/gfx_es2/gl_state.cpp index 026d24989e..3cbe18d2d7 100644 --- a/gfx_es2/gl_state.cpp +++ b/gfx_es2/gl_state.cpp @@ -39,6 +39,9 @@ void OpenGLState::Restore() { blendFunc.restore(); count++; blendColor.restore(); count++; + colorLogicOp.restore(); count++; + logicOp.restore(); count++; + scissorTest.restore(); count++; scissorRect.restore(); count++; diff --git a/gfx_es2/gl_state.h b/gfx_es2/gl_state.h index 889bc2f9fe..edda664824 100644 --- a/gfx_es2/gl_state.h +++ b/gfx_es2/gl_state.h @@ -202,6 +202,9 @@ public: STATE1(glBlendEquation, GLenum, GL_FUNC_ADD) blendEquation; STATEFLOAT4(glBlendColor, 1.0f) blendColor; + BoolState colorLogicOp; + STATE1(glLogicOp, GLenum, GL_COPY) logicOp; + BoolState scissorTest; BoolState cullFace;