DS GX: Fix alpha knocking out depth

This commit is contained in:
Vicki Pfau 2017-03-05 15:30:21 -08:00
parent c4d10ba237
commit 79e0a0da49
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ static void DSGXSoftwareRendererDrawScanline(struct DSGXRenderer* renderer, int
_lerpEndpoint(span, &ep, x); _lerpEndpoint(span, &ep, x);
color_t color = _lookupColor(softwareRenderer, &ep, span->poly); color_t color = _lookupColor(softwareRenderer, &ep, span->poly);
unsigned a = color >> 27; unsigned a = color >> 27;
if (a == 0x1F || !(scanline[x] & 0xF8000000)) { if (a == 0x1F) {
if (softwareRenderer->wSort) { if (softwareRenderer->wSort) {
if (ep.w < softwareRenderer->depthBuffer[x]) { if (ep.w < softwareRenderer->depthBuffer[x]) {
softwareRenderer->depthBuffer[x] = ep.w; softwareRenderer->depthBuffer[x] = ep.w;