Clear all Real3D DMA registers on reset; uninitialized values were causing issues with MSVC debug builds

This commit is contained in:
Matthew Daniels 2021-12-17 23:36:54 +00:00
parent 3e9c887277
commit 6ff099b5ba

View file

@ -845,8 +845,14 @@ void CReal3D::Reset(void)
fifoIdx = 0; fifoIdx = 0;
m_vromTextureFIFOIdx = 0; m_vromTextureFIFOIdx = 0;
dmaStatus = 0;
dmaSrc = 0;
dmaDest = 0;
dmaLength = 0;
dmaData = 0;
dmaUnknownReg = 0; dmaUnknownReg = 0;
dmaStatus = 0;
dmaConfig = 0;
unsigned memSize = (m_gpuMultiThreaded ? MEMORY_POOL_SIZE : MEM_POOL_SIZE_RW); unsigned memSize = (m_gpuMultiThreaded ? MEMORY_POOL_SIZE : MEM_POOL_SIZE_RW);
memset(memoryPool, 0, memSize); memset(memoryPool, 0, memSize);