mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 05:17:40 -07:00
remove an optimization for swapped polygons
why did i optimize swapped polygons? they're not that common.
This commit is contained in:
parent
3facbe90c9
commit
3268f94f4b
@ -352,13 +352,10 @@ private:
|
|||||||
{
|
{
|
||||||
// only do length calc for right side when swapped as it's
|
// only do length calc for right side when swapped as it's
|
||||||
// only needed for aa calcs, as actual line spans are broken
|
// only needed for aa calcs, as actual line spans are broken
|
||||||
if (!swapped || side)
|
if (side ^ Negative)
|
||||||
{
|
*length = (dx >> 18) - ((dx-Increment) >> 18);
|
||||||
if (side ^ Negative)
|
else
|
||||||
*length = (dx >> 18) - ((dx-Increment) >> 18);
|
*length = ((dx+Increment) >> 18) - (dx >> 18);
|
||||||
else
|
|
||||||
*length = ((dx+Increment) >> 18) - (dx >> 18);
|
|
||||||
}
|
|
||||||
|
|
||||||
// for X-major edges, we return the coverage
|
// for X-major edges, we return the coverage
|
||||||
// for the first pixel, and the increment for
|
// for the first pixel, and the increment for
|
||||||
|
Loading…
Reference in New Issue
Block a user