From 6ff099b5ba3ac4a45995e294a9f083d1fe4f0141 Mon Sep 17 00:00:00 2001 From: Matthew Daniels Date: Fri, 17 Dec 2021 23:36:54 +0000 Subject: [PATCH] Clear all Real3D DMA registers on reset; uninitialized values were causing issues with MSVC debug builds --- Src/Model3/Real3D.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Src/Model3/Real3D.cpp b/Src/Model3/Real3D.cpp index 609b340..6444560 100644 --- a/Src/Model3/Real3D.cpp +++ b/Src/Model3/Real3D.cpp @@ -845,8 +845,14 @@ void CReal3D::Reset(void) fifoIdx = 0; m_vromTextureFIFOIdx = 0; - dmaStatus = 0; + + dmaSrc = 0; + dmaDest = 0; + dmaLength = 0; + dmaData = 0; dmaUnknownReg = 0; + dmaStatus = 0; + dmaConfig = 0; unsigned memSize = (m_gpuMultiThreaded ? MEMORY_POOL_SIZE : MEM_POOL_SIZE_RW); memset(memoryPool, 0, memSize);