diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-08-28 18:48:06 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-08-28 18:48:06 +0200 |
commit | ee6daa0e626fe6004d5cc0e950cfe6dca35d7093 (patch) | |
tree | 07656929a5909215c5c66b9a79ba464335f54c56 /src | |
parent | 2e23ae54b21e9c11bf885916d00743a19f9a4142 (diff) |
fix antialiasing along Y-major edges
Diffstat (limited to 'src')
-rw-r--r-- | src/GPU3D_Soft.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; |