mirror of https://github.com/snes9xgit/snes9x.git
win32: only deinit ogl imgui when ogl is initialized
This commit is contained in:
parent
5481bb0436
commit
c7e6e9c211
|
@ -151,12 +151,12 @@ bool COpenGL::Initialize(HWND hWnd)
|
|||
|
||||
void COpenGL::DeInitialize()
|
||||
{
|
||||
initDone = false;
|
||||
if (S9xImGuiRunning())
|
||||
if (initDone && S9xImGuiRunning())
|
||||
{
|
||||
ImGui_ImplOpenGL3_Shutdown();
|
||||
S9xImGuiDeinit();
|
||||
}
|
||||
initDone = false;
|
||||
SetShaders(NULL);
|
||||
DestroyDrawSurface();
|
||||
wglMakeCurrent(NULL,NULL);
|
||||
|
|
Loading…
Reference in New Issue