GBA Video: OBJWIN sprites cannot be mosaic

This commit is contained in:
Vicki Pfau 2019-05-20 19:16:07 -07:00
parent bdb584a398
commit fd6948da4d
1 changed files with 1 additions and 1 deletions
src/gba/renderers

View File

@ -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;