From f122106b615a453e6ba13d366229e6d4ceb138f2 Mon Sep 17 00:00:00 2001 From: "fires.gc" Date: Wed, 5 Nov 2008 21:59:54 +0000 Subject: [PATCH] Workaround for shutdown opengl plugin if you are render to window. It hangs in a message box (wglMakeCurrent(NULL,NULL) fails) which you cant see and so cant click away. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1080 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp index 84afbad6ae..739cacdb30 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp @@ -679,7 +679,9 @@ void OpenGL_Shutdown() { if (!wglMakeCurrent(NULL,NULL)) // Are We Able To Release The DC And RC Contexts? { - MessageBox(NULL,"Release Of DC And RC Failed.", "SHUTDOWN ERROR", MB_OK | MB_ICONINFORMATION); + // [F|RES]: if this fails i dont see the message box and cant get out of the modal state + // so i disable it. This function fails only if i render to main window + // MessageBox(NULL,"Release Of DC And RC Failed.", "SHUTDOWN ERROR", MB_OK | MB_ICONINFORMATION); } if (!wglDeleteContext(hRC)) // Are We Able To Delete The RC?