1
0
Fork 0
mirror of https://github.com/melonDS-emu/melonDS.git synced 2025-03-06 21:00:31 +01:00
This commit is contained in:
Jakly 2025-02-21 11:53:02 +01:00 committed by GitHub
commit 9cb41b6756
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1067,6 +1067,14 @@ void SoftRenderer::RenderPolygonScanline(const GPU& gpu, RendererPolygon* rp, s3
}
}
// quick hack to fix a minor bug.
// for some reason 0 pixel tall polygons have broken aa.
if (polygon->YBottom == polygon->YTop)
{
l_edgecov = 0;
r_edgecov = 0;
}
// interpolate attributes along Y
s32 rl = interp_start->Interpolate(vlcur->FinalColor[0], vlnext->FinalColor[0]);