From 1ac9e4e69607c65b38568d93e498f129404225ca Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 4 Jul 2013 16:25:04 +0700 Subject: [PATCH] Fix min_lod and lod_frac read in RDP_SetPrimColor. --- RDP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RDP.cpp b/RDP.cpp index cd651447..14b6d793 100644 --- a/RDP.cpp +++ b/RDP.cpp @@ -55,8 +55,8 @@ void RDP_SetEnvColor( u32 w0, u32 w1 ) void RDP_SetPrimColor( u32 w0, u32 w1 ) { - gDPSetPrimColor( _SHIFTL( w0, 8, 8 ), // m - _SHIFTL( w0, 0, 8 ), // l + gDPSetPrimColor( _SHIFTR( w0, 8, 8 ), // m + _SHIFTR( w0, 0, 8 ), // l _SHIFTR( w1, 24, 8 ), // r _SHIFTR( w1, 16, 8 ), // g _SHIFTR( w1, 8, 8 ), // b