GBA Video: Fix transposed BG mosaic parameters in GL renderer

This commit is contained in:
Vicki Pfau 2021-03-22 23:10:50 -07:00
parent 18b36604a8
commit 2aa3ec022a
2 changed files with 2 additions and 1 deletions

View File

@ -65,6 +65,7 @@ Emulation fixes:
- GBA Video: Emulate sprite cycle limits in OpenGL renderer (fixes mgba.io/i/1635) - GBA Video: Emulate sprite cycle limits in OpenGL renderer (fixes mgba.io/i/1635)
- GBA Video: Fix OBJWIN erratic rendering in OpenGL renderer - GBA Video: Fix OBJWIN erratic rendering in OpenGL renderer
- GBA Video: Fix x offset in 256-color BG mosaic (fixes mgba.io/i/1684) - GBA Video: Fix x offset in 256-color BG mosaic (fixes mgba.io/i/1684)
- GBA Video: Fix transposed BG mosaic parameters in GL renderer
- SM83: Emulate HALT bug - SM83: Emulate HALT bug
- SM83: Improve mid-M-cycle interrupts - SM83: Improve mid-M-cycle interrupts
- SM83: HALT should not consume an extra T-state - SM83: HALT should not consume an extra T-state

View File

@ -1818,7 +1818,7 @@ void _prepareBackground(struct GBAVideoGLRenderer* renderer, struct GBAVideoGLBa
glUniform1i(uniforms[GBA_GL_BG_VRAM], 0); glUniform1i(uniforms[GBA_GL_BG_VRAM], 0);
glUniform1i(uniforms[GBA_GL_OBJ_PALETTE], 1); glUniform1i(uniforms[GBA_GL_OBJ_PALETTE], 1);
if (background->mosaic) { if (background->mosaic) {
glUniform2i(uniforms[GBA_GL_BG_MOSAIC], GBAMosaicControlGetBgV(renderer->mosaic) + 1, GBAMosaicControlGetBgH(renderer->mosaic) + 1); glUniform2i(uniforms[GBA_GL_BG_MOSAIC], GBAMosaicControlGetBgH(renderer->mosaic) + 1, GBAMosaicControlGetBgV(renderer->mosaic) + 1);
} else { } else {
glUniform2i(uniforms[GBA_GL_BG_MOSAIC], 0, 0); glUniform2i(uniforms[GBA_GL_BG_MOSAIC], 0, 0);
} }