From 3274bea4299473a984fded5a7d385be17458ec70 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 23 Sep 2002 05:59:01 +0000 Subject: [PATCH] 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 --- vid_wgl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2