GBA Video: Fix layers breaking randomly

This commit is contained in:
Vicki Pfau 2019-05-24 02:31:23 -07:00
parent ffe7142d1f
commit e4e2c27789
1 changed files with 1 additions and 0 deletions

View File

@ -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) {