mirror of https://github.com/mgba-emu/mgba.git
DS GX: Fix alpha on clear background
This commit is contained in:
parent
1a779ec2fa
commit
03d11c3d0c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue