mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
Clean up some rendering-related resources in DeInit (#1836)
- The unique_ptr destructors will take care of the cleanup
This commit is contained in:

committed by
GitHub

parent
7d4a7969d9
commit
9d9ba83731
@ -39,6 +39,7 @@ void SoftRenderer::StopRenderThread()
|
||||
Platform::Semaphore_Post(Sema_RenderStart);
|
||||
Platform::Thread_Wait(RenderThread);
|
||||
Platform::Thread_Free(RenderThread);
|
||||
RenderThread = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@ -81,6 +82,7 @@ SoftRenderer::SoftRenderer() noexcept
|
||||
Threaded = false;
|
||||
RenderThreadRunning = false;
|
||||
RenderThreadRendering = false;
|
||||
RenderThread = nullptr;
|
||||
}
|
||||
|
||||
SoftRenderer::~SoftRenderer()
|
||||
|
Reference in New Issue
Block a user