diff --git a/base/PCMain.cpp b/base/PCMain.cpp index 97febbc00e..808c3fcb2f 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -218,7 +218,6 @@ int main(int argc, char *argv[]) { SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); - SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); diff --git a/gfx_es2/gl_state.cpp b/gfx_es2/gl_state.cpp index f46352bcf4..e3dfcb5ce4 100644 --- a/gfx_es2/gl_state.cpp +++ b/gfx_es2/gl_state.cpp @@ -14,11 +14,15 @@ void OpenGLState::Restore() { blend.restore(); blendEquation.restore(); blendFunc.restore(); + blendColor.restore(); + + scissorTest.restore(); cullFace.restore(); cullFaceMode.restore(); + frontFace.restore(); depthTest.restore(); depthRange.restore(); depthFunc.restore(); -} \ No newline at end of file +}