GBA Video: Fix backdrop color trick in GL
Vicki Pfau vi@endrift.com
Tue, 28 May 2019 16:34:18 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/renderers/gl.c
→
src/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]);