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
1 changed files with 6 additions and 0 deletions

View File

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