libretro: Possible fix for crash when reloading content

This commit is contained in:
Connor McLaughlin 2020-07-29 03:00:00 +10:00
parent 77481f5b23
commit 415c21dc84

View File

@ -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();
} }