mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Fifo: small cleanup
This commit is contained in:
@ -104,7 +104,8 @@ void Fifo_Init()
|
||||
|
||||
void Fifo_Shutdown()
|
||||
{
|
||||
if (GpuRunningState) PanicAlert("Fifo shutting down while active");
|
||||
if (GpuRunningState)
|
||||
PanicAlert("Fifo shutting down while active");
|
||||
FreeMemoryPages(s_video_buffer, FIFO_SIZE + 4);
|
||||
s_video_buffer = nullptr;
|
||||
s_video_buffer_write_ptr = nullptr;
|
||||
@ -127,7 +128,8 @@ void ExitGpuLoop()
|
||||
// This should break the wait loop in CPU thread
|
||||
CommandProcessor::fifo.bFF_GPReadEnable = false;
|
||||
SCPFifoStruct &fifo = CommandProcessor::fifo;
|
||||
while (fifo.isGpuReadingData) Common::YieldCPU();
|
||||
while (fifo.isGpuReadingData)
|
||||
Common::YieldCPU();
|
||||
// Terminate GPU thread loop
|
||||
GpuRunningState = false;
|
||||
EmuRunningState = true;
|
||||
|
Reference in New Issue
Block a user