GBA Video: Fix OBJ blending regression (fix #1037)

This commit is contained in:
Vicki Pfau 2018-04-14 11:43:31 -07:00
parent 179abfcc25
commit 84b79b1ba8
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ static void GBAVideoSoftwareRendererDrawScanline(struct GBAVideoRenderer* render
}
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;