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) {
|
} else if (a) {
|
||||||
// TODO: Disable alpha?
|
// TODO: Disable alpha?
|
||||||
color = _mix32(a, color, 0x1F - a, current);
|
if (b) {
|
||||||
color |= ab << 27;
|
color = _mix32(a, color, 0x1F - a, current);
|
||||||
|
color |= ab << 27;
|
||||||
|
}
|
||||||
if (softwareRenderer->wSort) {
|
if (softwareRenderer->wSort) {
|
||||||
if (span->ep[0].w < softwareRenderer->depthBuffer[x]) {
|
if (span->ep[0].w < softwareRenderer->depthBuffer[x]) {
|
||||||
softwareRenderer->depthBuffer[x] = span->ep[0].w;
|
softwareRenderer->depthBuffer[x] = span->ep[0].w;
|
||||||
|
|
Loading…
Reference in New Issue