all repos — mgba @ 0eb1f4ec0818ad11821137189a45edfb13493589

mGBA Game Boy Advance Emulator

GBA Video: Don't clear flag buffers since they always get overwritten when used
Vicki Pfau vi@endrift.com
Sun, 26 Jan 2020 14:27:11 -0800
commit

0eb1f4ec0818ad11821137189a45edfb13493589

parent

dbbe0abaef01f2ad142476002a567ffa9eb1d219

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/gba/renderers/gl.csrc/gba/renderers/gl.c

@@ -1394,12 +1394,12 @@ glClearDepth(1);

#endif glClearStencil(0); glBindFramebuffer(GL_FRAMEBUFFER, glRenderer->fbo[GBA_GL_FBO_OBJ]); - glDrawBuffers(2, (GLenum[]) { GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1 }); + glDrawBuffers(1, (GLenum[]) { GL_COLOR_ATTACHMENT0 }); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); for (i = 0; i < 4; ++i) { glBindFramebuffer(GL_FRAMEBUFFER, glRenderer->bg[i].fbo); - glDrawBuffers(2, (GLenum[]) { GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1 }); + glDrawBuffers(1, (GLenum[]) { GL_COLOR_ATTACHMENT0 }); glClear(GL_COLOR_BUFFER_BIT); } }