all repos — mgba @ 84b79b1ba8edfbdd6fe294c75e14fe9f1b4fd82c

mGBA Game Boy Advance Emulator

GBA Video: Fix OBJ blending regression (fix #1037)
Vicki Pfau vi@endrift.com
Sat, 14 Apr 2018 11:43:31 -0700
commit

84b79b1ba8edfbdd6fe294c75e14fe9f1b4fd82c

parent

179abfcc25abf80065c6ba6b379f8607bd55ac5b

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

jump to
M src/gba/renderers/video-software.csrc/gba/renderers/video-software.c

@@ -627,7 +627,7 @@ }

} if (softwareRenderer->target1Obj && (softwareRenderer->blendEffect == BLEND_DARKEN || softwareRenderer->blendEffect == BLEND_BRIGHTEN)) { x = 0; - uint32_t mask = 0xFF000000 & ~FLAG_OBJWIN; + uint32_t mask = FLAG_REBLEND | FLAG_TARGET_1 | FLAG_IS_BACKGROUND; uint32_t match = FLAG_REBLEND; if (GBARegisterDISPCNTIsObjwinEnable(softwareRenderer->dispcnt)) { mask |= FLAG_OBJWIN;