DMA: Reset DoTransfer flag when initializing HDMA channels

This commit is contained in:
Sour 2019-03-03 13:53:00 -05:00
parent ce7c2f7ee8
commit b9321f66f7

View file

@ -49,7 +49,11 @@ void DmaController::InitHdmaChannels()
_memoryManager->IncrementMasterClockValue<18>();
for(int i = 0; i < 8; i++) {
DmaChannelConfig &ch = _channel[i];
//Reset internal flags on every frame
ch.HdmaFinished = false;
ch.DoTransfer = false; //not resetting this causes graphical glitches in some games (Aladdin, Super Ghouls and Ghosts)
if(_hdmaChannels & (1 << i)) {
//"1. Copy AAddress into Address."
ch.HdmaTableAddress = ch.SrcAddress;