wgl: Implement WGL_EXT_extensions_string extension.
This commit is contained in:
parent
3ebcf2dd74
commit
c384ccb0c4
|
@ -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.
|
||||
*
|
||||
|
@ -33,14 +34,25 @@
|
|||
#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;
|
||||
}
|
|
@ -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 }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue