Permalink
Browse files

DS Video: Fix 2D/3D blending alpha values

  • Loading branch information...
endrift committed Jul 17, 2017
1 parent 6054589 commit 7d360d6cb893f916ecdcece999303cd6a35e952c
Showing with 4 additions and 2 deletions.
  1. +1 −0 CHANGES
  2. +3 −2 src/ds/renderers/software.c
View
@@ -10,6 +10,7 @@ Bugfixes:
- DS GX: Properly center cross product in polygon normal calculations
- DS Video: Fix affine parameter advancing (fixes mgba.io/i/802)
- DS GX: Fix incorrect W values
+ - DS Video: Fix 2D/3D blending alpha values
Misc:
- DS GX: Clean up and unify texture mapping
- DS Core: Add symbol loading
@@ -429,11 +429,12 @@ static void DSVideoSoftwareRendererDrawGBAScanline(struct GBAVideoRenderer* rend
} else {
if (!(flags & FLAG_TARGET_2) || !(softwareRenderer->row[x] & FLAG_TARGET_1)) {
_compositeNoBlendNoObjwin(softwareRenderer, x, (color & 0x00FFFFFF) | flags, softwareRenderer->row[x]);
- softwareRenderer->alphaA[x] = 0x10;
- softwareRenderer->alphaB[x] = 0;
} else if (softwareRenderer->row[x] & FLAG_TARGET_1) {
+ softwareRenderer->alphaB[x] = 0x10;
_compositeBlendNoObjwin(softwareRenderer, x, (color & 0x00FFFFFF) | flags, softwareRenderer->row[x]);
}
+ softwareRenderer->alphaA[x] = 0x10;
+ softwareRenderer->alphaB[x] = 0;
}
}
}

0 comments on commit 7d360d6

Please sign in to comment.