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
This commit is contained in:
fires.gc 2008-11-05 21:59:54 +00:00
parent fafbbdfee5
commit f122106b61
1 changed files with 3 additions and 1 deletions

View File

@ -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?