int GL_OpenLibrary(const char *name)
{
- Con_Printf("Loading GL driver %s\n", name);
+ Con_Printf("Loading OpenGL driver %s\n", name);
GL_CloseLibrary();
if (!(gldll = LoadLibrary(name)))
{
GL_CloseLibrary();
if (hDC && mainwindow)
ReleaseDC(mainwindow, hDC);
- if (vid_isfullscreen)
- ChangeDisplaySettings (NULL, 0);
- vid_isfullscreen = false;
AppActivate(false, false);
if (mainwindow)
DestroyWindow(mainwindow);
mainwindow = 0;
+ if (vid_isfullscreen)
+ ChangeDisplaySettings (NULL, 0);
+ vid_isfullscreen = false;
}