mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 17:55:47 -04:00
libretro: Possible fix for crash when reloading content
This commit is contained in:
@ -335,6 +335,12 @@ bool LibretroHostInterface::AcquireHostDisplay()
|
||||
|
||||
void LibretroHostInterface::ReleaseHostDisplay()
|
||||
{
|
||||
if (m_hw_render_display)
|
||||
{
|
||||
m_hw_render_display->DestroyRenderDevice();
|
||||
m_hw_render_display.reset();
|
||||
}
|
||||
|
||||
m_display->DestroyRenderDevice();
|
||||
m_display.reset();
|
||||
}
|
||||
|
Reference in New Issue
Block a user