From ee6daa0e626fe6004d5cc0e950cfe6dca35d7093 Mon Sep 17 00:00:00 2001
From: StapleButter <thetotalworm@gmail.com>
Date: Mon, 28 Aug 2017 18:48:06 +0200
Subject: fix antialiasing along Y-major edges

---
 src/GPU3D_Soft.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp
index 1a17bd1..1894920 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;
-- 
cgit v1.2.3