summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-21 05:34:39 +0200
committerGitHub <noreply@github.com>2018-09-21 05:34:39 +0200
commita373dddbd991519365b507987fe3674ebaeb1db4 (patch)
treed9c55b006a17a1a32c30d9ebcd9698ac174df4e8
parentMerge pull request #1364 from lioncash/content (diff)
parentRasterizerGL: Use the correct framebuffer when clearing via the CLEAR_BUFFERS register. (diff)
downloadyuzu-a373dddbd991519365b507987fe3674ebaeb1db4.tar
yuzu-a373dddbd991519365b507987fe3674ebaeb1db4.tar.gz
yuzu-a373dddbd991519365b507987fe3674ebaeb1db4.tar.bz2
yuzu-a373dddbd991519365b507987fe3674ebaeb1db4.tar.lz
yuzu-a373dddbd991519365b507987fe3674ebaeb1db4.tar.xz
yuzu-a373dddbd991519365b507987fe3674ebaeb1db4.tar.zst
yuzu-a373dddbd991519365b507987fe3674ebaeb1db4.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index e37acbfac..70fb54507 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -383,7 +383,7 @@ void RasterizerOpenGL::Clear() {
bool use_stencil{};
OpenGLState clear_state;
- clear_state.draw.draw_framebuffer = state.draw.draw_framebuffer;
+ clear_state.draw.draw_framebuffer = framebuffer.handle;
clear_state.color_mask.red_enabled = regs.clear_buffers.R ? GL_TRUE : GL_FALSE;
clear_state.color_mask.green_enabled = regs.clear_buffers.G ? GL_TRUE : GL_FALSE;
clear_state.color_mask.blue_enabled = regs.clear_buffers.B ? GL_TRUE : GL_FALSE;