From 2058770099f1caac9c3f9f9372422eb85bb3e783 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Tue, 7 Oct 2014 12:30:45 +0700 Subject: [PATCH] Code cleanup: fix "texturePersp enabled" check. --- gSP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gSP.cpp b/gSP.cpp index 3c93c661..b25da651 100644 --- a/gSP.cpp +++ b/gSP.cpp @@ -1250,7 +1250,7 @@ void gSPModifyVertex( u32 _vtx, u32 _where, u32 _val ) vtx0.a = _SHIFTR( _val, 0, 8 ) * 0.0039215689f; break; case G_MWO_POINT_ST: - if (gDP.otherMode.texturePersp > 0) { + if (gDP.otherMode.texturePersp != 0) { vtx0.s = _FIXED2FLOAT( (s16)_SHIFTR( _val, 16, 16 ), 5 ); vtx0.t = _FIXED2FLOAT( (s16)_SHIFTR( _val, 0, 16 ), 5 ); } else {