DMA: Reset DoTransfer flag when initializing HDMA channels
This commit is contained in:
parent
ce7c2f7ee8
commit
b9321f66f7
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue