1
0
Fork 0
forked from suyu/suyu

Merge pull request #1375 from Subv/gl_clear

RasterizerGL: Use the correct framebuffer when clearing via the CLEAR_BUFFERS register.
This commit is contained in:
bunnei 2018-09-20 23:34:39 -04:00 committed by GitHub
commit a373dddbd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;