GS: Release host display if GS init fails

That way we don't try to create it when it already exists next attempt.
This commit is contained in:
Connor McLaughlin 2022-01-17 12:21:21 +10:00 committed by refractionpcsx2
parent ab2365b475
commit 3091d28615
1 changed files with 7 additions and 1 deletions

View File

@ -316,7 +316,13 @@ bool GSopen(const Pcsx2Config::GSOptions& config, GSRendererType renderer, u8* b
return false;
}
return DoGSOpen(renderer, basemem);
if (!DoGSOpen(renderer, basemem))
{
Host::ReleaseHostDisplay();
return false;
}
return true;
}
void GSreset()