From ee6daa0e626fe6004d5cc0e950cfe6dca35d7093 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Mon, 28 Aug 2017 18:48:06 +0200 Subject: [PATCH] fix antialiasing along Y-major edges --- src/GPU3D_Soft.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index 1a17bd1d..18949201 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -493,8 +493,7 @@ public: } else { - *coverage = ((dx >> 13) + (Increment >> 14)) & 0x1F; - s32 cov = ((dx >> 7) + (Increment >> 8)) >> 4; + s32 cov = ((dx >> 9) + (Increment >> 10)) >> 4; if ((cov >> 5) != (dx >> 18)) cov = 31; cov &= 0x1F; if (!(side ^ Negative)) cov = 0x1F - cov;