From fd6948da4d5c066ecbb298081ed5a8cb661c9c86 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 20 May 2019 19:16:07 -0700 Subject: [PATCH] GBA Video: OBJWIN sprites cannot be mosaic --- src/gba/renderers/gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/renderers/gl.c b/src/gba/renderers/gl.c index ff77ed4e7..6d7aafd14 100644 --- a/src/gba/renderers/gl.c +++ b/src/gba/renderers/gl.c @@ -1342,7 +1342,7 @@ void GBAVideoGLRendererDrawSprite(struct GBAVideoGLRenderer* renderer, struct GB 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;