From 6ffbf3964a81a13dc96bdbcd67ede6dc8a65d2e4 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 21 Sep 2013 18:56:26 -0700 Subject: [PATCH] Use the right vertex/index addr in NullGpu. --- GPU/Null/NullGpu.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/GPU/Null/NullGpu.cpp b/GPU/Null/NullGpu.cpp index bd8455b82..7ae55a2ec 100644 --- a/GPU/Null/NullGpu.cpp +++ b/GPU/Null/NullGpu.cpp @@ -56,14 +56,12 @@ void NullGPU::ExecuteOp(u32 op, u32 diff) DEBUG_LOG(G3D,"DL BASE: %06x", data); break; - case GE_CMD_VADDR: /// <<8???? - gstate_c.vertexAddr = ((gstate.base & 0x00FF0000) << 8)|data; - DEBUG_LOG(G3D,"DL VADDR: %06x", gstate_c.vertexAddr); + case GE_CMD_VADDR: + gstate_c.vertexAddr = gstate_c.getRelativeAddress(data); break; case GE_CMD_IADDR: - gstate_c.indexAddr = ((gstate.base & 0x00FF0000) << 8)|data; - DEBUG_LOG(G3D,"DL IADDR: %06x", gstate_c.indexAddr); + gstate_c.indexAddr = gstate_c.getRelativeAddress(data); break; case GE_CMD_PRIM: