aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-18 01:32:31 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-18 01:32:31 +0200
commita752b1d7c2701da34d325ce1e439ee5935fd7fa3 (patch)
tree13abe6678979e63c0660be27b019d394282c79c0 /src
parentf1a970ec30062328ae5bd4d30f118c175f051d5c (diff)
woops
Diffstat (limited to 'src')
-rw-r--r--src/GPU2D.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GPU2D.cpp b/src/GPU2D.cpp
index 4a98248..9ec240b 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;
}