DS GX: Fix alpha on clear background

This commit is contained in:
Vicki Pfau 2017-03-18 17:49:12 -07:00
parent 1a779ec2fa
commit 03d11c3d0c
1 changed files with 4 additions and 2 deletions

View File

@ -644,8 +644,10 @@ static void DSGXSoftwareRendererDrawScanline(struct DSGXRenderer* renderer, int
}
} else if (a) {
// TODO: Disable alpha?
color = _mix32(a, color, 0x1F - a, current);
color |= ab << 27;
if (b) {
color = _mix32(a, color, 0x1F - a, current);
color |= ab << 27;
}
if (softwareRenderer->wSort) {
if (span->ep[0].w < softwareRenderer->depthBuffer[x]) {
softwareRenderer->depthBuffer[x] = span->ep[0].w;