Qt: Fix crash with Vulkan renderer when unsupported

This commit is contained in:
Connor McLaughlin
2020-12-01 01:17:26 +10:00
parent 37c9e69b3e
commit bccecdbf18
2 changed files with 4 additions and 3 deletions

View File

@ -486,7 +486,7 @@ bool QtHostInterface::AcquireHostDisplay()
if (!display_widget || !m_display->HasRenderDevice())
{
emit destroyDisplayRequested();
m_display = nullptr;
m_display.reset();
return false;
}