all repos — mgba @ 2aa3ec022a6ad4b877c8db1b4a84ff1355a9f6bf

mGBA Game Boy Advance Emulator

GBA Video: Fix transposed BG mosaic parameters in GL renderer
Vicki Pfau vi@endrift.com
Mon, 22 Mar 2021 23:10:50 -0700
commit

2aa3ec022a6ad4b877c8db1b4a84ff1355a9f6bf

parent

18b36604a89dcba80fd84fb3ca44949f756e06d6

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

jump to
M CHANGESCHANGES

@@ -65,6 +65,7 @@ - GBA Video: Implement green swap (fixes mgba.io/i/1609)

- 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 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: Improve mid-M-cycle interrupts - SM83: HALT should not consume an extra T-state
M src/gba/renderers/gl.csrc/gba/renderers/gl.c

@@ -1818,7 +1818,7 @@ glUniform2i(uniforms[GBA_GL_VS_MAXPOS], GBA_VIDEO_HORIZONTAL_PIXELS, GBA_VIDEO_VERTICAL_PIXELS);

glUniform1i(uniforms[GBA_GL_BG_VRAM], 0); glUniform1i(uniforms[GBA_GL_OBJ_PALETTE], 1); 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 { glUniform2i(uniforms[GBA_GL_BG_MOSAIC], 0, 0); }