mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
be sure to always reset NormalPipeline
This commit is contained in:
@ -1638,6 +1638,7 @@ void ExecuteCommand()
|
|||||||
// commands that can run 6 cycles after a vertex
|
// commands that can run 6 cycles after a vertex
|
||||||
if (VertexPipeline > 2) AddCycles((VertexPipeline - 2) + 1);
|
if (VertexPipeline > 2) AddCycles((VertexPipeline - 2) + 1);
|
||||||
else AddCycles(NormalPipeline + 1);
|
else AddCycles(NormalPipeline + 1);
|
||||||
|
NormalPipeline = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x29:
|
case 0x29:
|
||||||
@ -1651,12 +1652,14 @@ void ExecuteCommand()
|
|||||||
// command that can run 8 cycles after a vertex
|
// command that can run 8 cycles after a vertex
|
||||||
if (VertexPipeline > 0) AddCycles(VertexPipeline + 1);
|
if (VertexPipeline > 0) AddCycles(VertexPipeline + 1);
|
||||||
else AddCycles(NormalPipeline + 1);
|
else AddCycles(NormalPipeline + 1);
|
||||||
|
NormalPipeline = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// all other commands can run 4 cycles after a vertex
|
// all other commands can run 4 cycles after a vertex
|
||||||
// no need to do much here since that is the minimum
|
// no need to do much here since that is the minimum
|
||||||
AddCycles(NormalPipeline + 1);
|
AddCycles(NormalPipeline + 1);
|
||||||
|
NormalPipeline = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user