mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-28 11:35:42 -04:00
libretro: Possible fix for crash when reloading content
This commit is contained in:
parent
77481f5b23
commit
415c21dc84
@ -335,6 +335,12 @@ bool LibretroHostInterface::AcquireHostDisplay()
|
|||||||
|
|
||||||
void LibretroHostInterface::ReleaseHostDisplay()
|
void LibretroHostInterface::ReleaseHostDisplay()
|
||||||
{
|
{
|
||||||
|
if (m_hw_render_display)
|
||||||
|
{
|
||||||
|
m_hw_render_display->DestroyRenderDevice();
|
||||||
|
m_hw_render_display.reset();
|
||||||
|
}
|
||||||
|
|
||||||
m_display->DestroyRenderDevice();
|
m_display->DestroyRenderDevice();
|
||||||
m_display.reset();
|
m_display.reset();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user