From a752b1d7c2701da34d325ce1e439ee5935fd7fa3 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sat, 18 May 2019 01:32:31 +0200 Subject: [PATCH] woops --- src/GPU2D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GPU2D.cpp b/src/GPU2D.cpp index 4a982485..9ec240b9 100644 --- a/src/GPU2D.cpp +++ b/src/GPU2D.cpp @@ -917,7 +917,7 @@ void GPU2D::DoCapture(u32 line, u32 width) if ((val1 >> 30) == 1) { - u32 _3dval = _3DLine[i]; + u32 _3dval = _3DLine[val1 & 0xFF]; if ((_3dval >> 24) > 0) { val1 = _3dval | 0x40000000; @@ -928,7 +928,7 @@ void GPU2D::DoCapture(u32 line, u32 width) } else if ((val3 >> 30) == 1) { - u32 _3dval = _3DLine[i]; + u32 _3dval = _3DLine[val3 & 0xFF]; if ((_3dval >> 24) > 0) val2 = _3dval | 0x40000000; }