From: havoc Date: Mon, 23 Sep 2002 05:59:01 +0000 (+0000) Subject: wglGetExtensionsString is properly detected now (was checking for an extension string... X-Git-Tag: RELEASE_0_2_0_RC1~211 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3274bea4299473a984fded5a7d385be17458ec70;p=xonotic%2Fdarkplaces.git wglGetExtensionsString is properly detected now (was checking for an extension string, but none is present outside the wgl extensions list, which is a chicken and egg problem, now just checks if the function exists, like the spec says to do) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2423 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index 0c8004be..cfb992e5 100644 --- 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);