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()
|
||||
{
|
||||
if (m_hw_render_display)
|
||||
{
|
||||
m_hw_render_display->DestroyRenderDevice();
|
||||
m_hw_render_display.reset();
|
||||
}
|
||||
|
||||
m_display->DestroyRenderDevice();
|
||||
m_display.reset();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue