all repos — mgba @ 30e0624751a01f1d93e13ecbab66ab4a62af33db

mGBA Game Boy Advance Emulator

GBA Video: Fix backdrop color trick in GL
Vicki Pfau vi@endrift.com
Tue, 28 May 2019 16:34:18 -0700
commit

30e0624751a01f1d93e13ecbab66ab4a62af33db

parent

a6c503af69c9e9293492898359d21ad00a164d6f

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

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

@@ -1389,7 +1389,7 @@ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16I, 2, GBA_VIDEO_VERTICAL_PIXELS, 0, GL_RGBA_INTEGER, GL_SHORT, glRenderer->affine[1]);

} glEnable(GL_SCISSOR_TEST); - uint32_t backdrop = M_RGB5_TO_RGB8(glRenderer->d.palette[0]); + uint32_t backdrop = M_RGB5_TO_RGB8(glRenderer->shadowPalette[0]); glViewport(0, 0, 1, GBA_VIDEO_VERTICAL_PIXELS); glScissor(0, glRenderer->firstY, 1, y - glRenderer->firstY + 1); glBindFramebuffer(GL_FRAMEBUFFER, glRenderer->fbo[GBA_GL_FBO_BACKDROP]);