From 8f450faa5657a1a0f0a7f89c68b13fddb29988eb Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Fri, 29 Mar 2024 14:06:52 -0400 Subject: [PATCH] idk --- src/GPU3D_Soft.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GPU3D_Soft.h b/src/GPU3D_Soft.h index 9e1e2c13..3962f5c7 100644 --- a/src/GPU3D_Soft.h +++ b/src/GPU3D_Soft.h @@ -95,8 +95,7 @@ private: // should optimize down to one divide instruction this->zquo = ((z0 - z1) >> 1) / xdiff << 1; s32 rem = ((z0 - z1) >> 1) % xdiff << 1; - s32 idk = zquo * xdiff; - this->zcounter = z1 + idk + rem; + this->zcounter = z1 + (zquo * xdiff) + rem; } }