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