wgl: Implement WGL_EXT_extensions_string extension.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 27 Apr 2009 16:30:05 +0000 (17:30 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 27 Apr 2009 16:30:05 +0000 (17:30 +0100)
src/gallium/state_trackers/wgl/SConscript
src/gallium/state_trackers/wgl/shared/stw_extensionsstring.c [moved from src/gallium/state_trackers/wgl/shared/stw_arbextensionsstring.c with 82% similarity]
src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c

index 61fd8bf..5bbcc71 100644 (file)
@@ -26,7 +26,7 @@ if env['platform'] in ['windows']:
         'shared/stw_device.c',
         'shared/stw_framebuffer.c',
         'shared/stw_pixelformat.c',
-        'shared/stw_arbextensionsstring.c',
+        'shared/stw_extensionsstring.c',
         'shared/stw_getprocaddress.c',
         'shared/stw_arbpixelformat.c',
         'shared/stw_tls.c',
@@ -1,5 +1,6 @@
 /**************************************************************************
  * 
+ * Copyright 2009 VMware, Inc.
  * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
  * All Rights Reserved.
  * 
 #include <GL/wglext.h>
 
 
+static const char *stw_extension_string = 
+   "WGL_ARB_extensions_string "
+   "WGL_ARB_multisample "
+   "WGL_ARB_pixel_format "
+   "WGL_EXT_extensions_string";
+
+
 WINGDIAPI const char * APIENTRY
 wglGetExtensionsStringARB(
    HDC hdc )
 {
    (void) hdc;
 
-   return
-      "WGL_ARB_extensions_string "
-      "WGL_ARB_multisample "
-      "WGL_ARB_pixel_format";
+   return stw_extension_string;
+}
+
+
+WINGDIAPI const char * APIENTRY
+wglGetExtensionsStringEXT( void )
+{
+   return stw_extension_string;
 }
index aa43120..4070cbd 100644 (file)
@@ -53,6 +53,9 @@ static const struct stw_extension_entry stw_extension_entries[] = {
    STW_EXTENSION_ENTRY( wglGetPixelFormatAttribfvARB ),
    STW_EXTENSION_ENTRY( wglGetPixelFormatAttribivARB ),
 
+   /* WGL_EXT_extensions_string */
+   STW_EXTENSION_ENTRY( wglGetExtensionsStringEXT ),
+
    { NULL, NULL }
 };