FrontendCommon: Add duck icon to loading screens

This commit is contained in:
Connor McLaughlin
2020-10-01 23:32:01 +10:00
parent defe70794b
commit 5bc61849eb
4 changed files with 50 additions and 3 deletions

View File

@ -482,7 +482,8 @@ bool QtHostInterface::AcquireHostDisplay()
createImGuiContext(display_widget->devicePixelRatioFromScreen());
if (!m_display->MakeRenderContextCurrent() ||
!m_display->InitializeRenderDevice(GetShaderCacheBasePath(), g_settings.gpu_use_debug_device))
!m_display->InitializeRenderDevice(GetShaderCacheBasePath(), g_settings.gpu_use_debug_device) ||
!CreateHostDisplayResources())
{
destroyImGuiContext();
m_display->DestroyRenderDevice();
@ -561,6 +562,7 @@ void QtHostInterface::ReleaseHostDisplay()
{
Assert(m_display);
ReleaseHostDisplayResources();
m_display->DestroyRenderDevice();
destroyImGuiContext();
emit destroyDisplayRequested();