all repos — mgba @ fd6948da4d5c066ecbb298081ed5a8cb661c9c86

mGBA Game Boy Advance Emulator

GBA Video: OBJWIN sprites cannot be mosaic
Vicki Pfau vi@endrift.com
Mon, 20 May 2019 19:16:07 -0700
commit

fd6948da4d5c066ecbb298081ed5a8cb661c9c86

parent

bdb584a39849899db5062f0894058c7783860381

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

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

@@ -1342,7 +1342,7 @@ } else {

glUniform4f(uniforms[GBA_GL_OBJ_OBJWIN], 0, 0, 0, 0); glDrawBuffers(2, (GLenum[]) { GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1 }); } - if (GBAObjAttributesAIsMosaic(sprite->a)) { + if (GBAObjAttributesAIsMosaic(sprite->a) && GBAObjAttributesAGetMode(sprite->a) != OBJ_MODE_OBJWIN) { int mosaicH = GBAMosaicControlGetObjH(renderer->mosaic) + 1; if (GBAObjAttributesBIsHFlip(sprite->b)) { mosaicH = -mosaicH;