mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix backdrop color trick in GL
This commit is contained in:
parent
a6c503af69
commit
30e0624751
|
@ -1389,7 +1389,7 @@ void _drawScanlines(struct GBAVideoGLRenderer* glRenderer, int y) {
|
||||||
}
|
}
|
||||||
glEnable(GL_SCISSOR_TEST);
|
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);
|
glViewport(0, 0, 1, GBA_VIDEO_VERTICAL_PIXELS);
|
||||||
glScissor(0, glRenderer->firstY, 1, y - glRenderer->firstY + 1);
|
glScissor(0, glRenderer->firstY, 1, y - glRenderer->firstY + 1);
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, glRenderer->fbo[GBA_GL_FBO_BACKDROP]);
|
glBindFramebuffer(GL_FRAMEBUFFER, glRenderer->fbo[GBA_GL_FBO_BACKDROP]);
|
||||||
|
|
Loading…
Reference in New Issue