Skip to content
Snippets Groups Projects
Commit 9cd5c61f authored by Subv's avatar Subv
Browse files

RasterizerGL: Use the correct framebuffer when clearing via the CLEAR_BUFFERS register.

Previously we were clearing the default backbuffer framebuffer.

Found thanks to a Piglit test :)
parent f2372651
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment