mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
ab2365b475
commit
3091d28615
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue