Glitch64: Do not re-init opengl
This commit is contained in:
parent
d5dd94a4d7
commit
8746daa1e4
|
@ -862,11 +862,16 @@ grSstWinOpen(
|
||||||
return FXFALSE;
|
return FXFALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!wglMakeCurrent(hDC, hGLRC))
|
HGLRC CurrenthGLRC = wglGetCurrentContext();
|
||||||
|
|
||||||
|
if (CurrenthGLRC == NULL || CurrenthGLRC == hGLRC)
|
||||||
{
|
{
|
||||||
display_warning("wglMakeCurrent failed!");
|
if (!wglMakeCurrent(hDC, hGLRC))
|
||||||
grSstWinClose(0);
|
{
|
||||||
return FXFALSE;
|
display_warning("wglMakeCurrent failed!");
|
||||||
|
grSstWinClose(0);
|
||||||
|
return FXFALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else // _WIN32
|
#else // _WIN32
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue