pixelformat = 0;
newpixelformat = 0;
- for (windowpass = 0;windowpass < 2;windowpass++)
+ // start out at the final windowpass if samples is 1 as it's the only feature we need extended pixel formats for
+ for (windowpass = samples == 1;windowpass < 2;windowpass++)
{
+ gl_extensions = "";
+ gl_platformextensions = "";
+
mainwindow = CreateWindowEx (ExWindowStyle, "DarkPlacesWindowClass", gamename, WindowStyle, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, NULL, NULL, global_hInstance, NULL);
if (!mainwindow)
{
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