mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix layers breaking randomly
This commit is contained in:
parent
ffe7142d1f
commit
e4e2c27789
|
@ -1140,6 +1140,7 @@ void GBAVideoGLRendererDrawScanline(struct GBAVideoRenderer* renderer, int y) {
|
|||
if (glRenderer->paletteDirty || glRenderer->vramDirty || glRenderer->oamDirty || glRenderer->regsDirty) {
|
||||
if (glRenderer->firstY >= 0) {
|
||||
_drawScanlines(glRenderer, y - 1);
|
||||
glBindVertexArray(0);
|
||||
}
|
||||
}
|
||||
if (glRenderer->firstY < 0) {
|
||||
|
|
Loading…
Reference in New Issue