diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-27 07:47:57 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-04-10 23:13:15 +0200 |
commit | 6df25e9c7bec36d05f46ee7dd76e33df233e5682 (patch) | |
tree | c59747fb2eaae50d1b16c54ce56f4b724bba8cf2 /src/video_core/renderer_opengl | |
parent | Merge pull request #2345 from ReinUsesLisp/multibind (diff) | |
download | yuzu-6df25e9c7bec36d05f46ee7dd76e33df233e5682.tar yuzu-6df25e9c7bec36d05f46ee7dd76e33df233e5682.tar.gz yuzu-6df25e9c7bec36d05f46ee7dd76e33df233e5682.tar.bz2 yuzu-6df25e9c7bec36d05f46ee7dd76e33df233e5682.tar.lz yuzu-6df25e9c7bec36d05f46ee7dd76e33df233e5682.tar.xz yuzu-6df25e9c7bec36d05f46ee7dd76e33df233e5682.tar.zst yuzu-6df25e9c7bec36d05f46ee7dd76e33df233e5682.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index d250d5cbb..8cc21aa49 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -582,9 +582,6 @@ std::pair<bool, bool> RasterizerOpenGL::ConfigureFramebuffers( } void RasterizerOpenGL::Clear() { - const auto prev_state{state}; - SCOPE_EXIT({ prev_state.Apply(); }); - const auto& regs = system.GPU().Maxwell3D().regs; bool use_color{}; bool use_depth{}; @@ -656,7 +653,10 @@ void RasterizerOpenGL::Clear() { clear_state.EmulateViewportWithScissor(); } - clear_state.Apply(); + clear_state.ApplyColorMask(); + clear_state.ApplyDepth(); + clear_state.ApplyStencilTest(); + clear_state.ApplyViewport(); if (use_color) { glClearBufferfv(GL_COLOR, regs.clear_buffers.RT, regs.clear_color); |