]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
wglGetExtensionsString is properly detected now (was checking for an extension string...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Sep 2002 05:59:01 +0000 (05:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Sep 2002 05:59:01 +0000 (05:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2423 d7cf8633-e32d-0410-b094-e92efae38249

vid_wgl.c

index 0c8004be484553a7e02e9f62630a9fb14050ace7..cfb992e50a24760074b05a5bfc5011342c8fce82 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -844,6 +844,7 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp)
        }
 
        qglGetString = GL_GetProcAddress("glGetString");
+       qwglGetExtensionsStringARB = GL_GetProcAddress("wglGetExtensionsStringARB");
        if (qglGetString == NULL)
        {
                VID_Shutdown();
@@ -857,7 +858,7 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp)
        gl_platform = "WGL";
        gl_platformextensions = "";
 
-       if (GL_CheckExtension("WGL_ARB_extensions_string", getextensionsstringfuncs, NULL, false))
+       if (qwglGetExtensionsStringARB)
                gl_platformextensions = qwglGetExtensionsStringARB(hdc);
 
        gl_videosyncavailable = GL_CheckExtension("WGL_EXT_swap_control", wglswapintervalfuncs, NULL, false);