gl_vendor = (const char *)qglGetString(GL_VENDOR);
gl_version = (const char *)qglGetString(GL_VERSION);
gl_extensions = (const char *)qglGetString(GL_EXTENSIONS);
+ gl_platformextensions = "";
gl_platform = "AGL";
gl_videosyncavailable = true;
+ if (!gl_extensions)
+ gl_extensions = "";
+ if (!gl_platformextensions)
+ gl_platformextensions = "";
+
Con_DPrintf("GL_VENDOR: %s\n", gl_vendor);
Con_DPrintf("GL_RENDERER: %s\n", gl_renderer);
Con_DPrintf("GL_VERSION: %s\n", gl_version);
gl_platform = "GLX";
gl_platformextensions = qglXQueryExtensionsString(vidx11_display, vidx11_screen);
+ if (!gl_extensions)
+ gl_extensions = "";
+ if (!gl_platformextensions)
+ gl_platformextensions = "";
+
Con_DPrintf("GL_VENDOR: %s\n", gl_vendor);
Con_DPrintf("GL_RENDERER: %s\n", gl_renderer);
Con_DPrintf("GL_VERSION: %s\n", gl_version);
gl_platformextensions = "";
gl_videosyncavailable = false;
+ if (!gl_extensions)
+ gl_extensions = "";
+ if (!gl_platformextensions)
+ gl_platformextensions = "";
+
Con_DPrintf("GL_VENDOR: %s\n", gl_vendor);
Con_DPrintf("GL_RENDERER: %s\n", gl_renderer);
Con_DPrintf("GL_VERSION: %s\n", gl_version);
if (qwglGetExtensionsStringARB)
gl_platformextensions = (const char *)qwglGetExtensionsStringARB(baseDC);
+ if (!gl_extensions)
+ gl_extensions = "";
+ if (!gl_platformextensions)
+ gl_platformextensions = "";
+
// now some nice Windows pain:
// we have created a window, we needed one to find out if there are
// any multisample pixel formats available, the problem is that to