all repos — mgba @ e4e2c27789f1c04a5b41b1d8eb8318afde2d3a5b

mGBA Game Boy Advance Emulator

GBA Video: Fix layers breaking randomly
Vicki Pfau vi@endrift.com
Fri, 24 May 2019 02:31:23 -0700
commit

e4e2c27789f1c04a5b41b1d8eb8318afde2d3a5b

parent

ffe7142d1f847919d3bbd025fb849d1bc674c539

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

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

@@ -1140,6 +1140,7 @@

if (glRenderer->paletteDirty || glRenderer->vramDirty || glRenderer->oamDirty || glRenderer->regsDirty) { if (glRenderer->firstY >= 0) { _drawScanlines(glRenderer, y - 1); + glBindVertexArray(0); } } if (glRenderer->firstY < 0) {