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()
|
void COpenGL::DeInitialize()
|
||||||
{
|
{
|
||||||
initDone = false;
|
if (initDone && S9xImGuiRunning())
|
||||||
if (S9xImGuiRunning())
|
|
||||||
{
|
{
|
||||||
ImGui_ImplOpenGL3_Shutdown();
|
ImGui_ImplOpenGL3_Shutdown();
|
||||||
S9xImGuiDeinit();
|
S9xImGuiDeinit();
|
||||||
}
|
}
|
||||||
|
initDone = false;
|
||||||
SetShaders(NULL);
|
SetShaders(NULL);
|
||||||
DestroyDrawSurface();
|
DestroyDrawSurface();
|
||||||
wglMakeCurrent(NULL,NULL);
|
wglMakeCurrent(NULL,NULL);
|
||||||
|
|
Loading…
Reference in New Issue