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:
parent
fafbbdfee5
commit
f122106b61
|
@ -679,7 +679,9 @@ void OpenGL_Shutdown()
|
||||||
{
|
{
|
||||||
if (!wglMakeCurrent(NULL,NULL)) // Are We Able To Release The DC And RC Contexts?
|
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?
|
if (!wglDeleteContext(hRC)) // Are We Able To Delete The RC?
|
||||||
|
|
Loading…
Reference in New Issue