Fix wglGetExtensionsStringARB and wglGetExtensionsStringEXT so it tell we support all wgl*

but we do not support all of them yet.

svn path=/trunk/; revision=30768
This commit is contained in:
Magnus Olsen
2007-11-25 22:55:05 +00:00
parent 462d823f7f
commit ee56a4e474
2 changed files with 18 additions and 7 deletions
+17 -6
View File
@@ -692,7 +692,7 @@ WINGDIAPI BOOL GLAPIENTRY wglRealizeLayerPalette(HDC hdc,
}
WINGDIAPI BOOL GLAPIENTRY wglSwapLayerBuffers(HDC hdc,
UINT fuPlanes)
UINT fuPlanes)
{
(void) hdc; (void) fuPlanes;
SetLastError(0);
@@ -701,16 +701,27 @@ WINGDIAPI BOOL GLAPIENTRY wglSwapLayerBuffers(HDC hdc,
WINGDIAPI const char * GLAPIENTRY wglGetExtensionsStringARB(HDC hdc)
{
return "WGL_ARB_extensions_string";
/* WGL_ARB_render_texture */
return "WGL_ARB_extensions_string WGL_"
"ARB_pixel_format WGL_ARB_multi"
"sample WGL_EXT_swap_control WG"
"L_ARB_pbuffer WGL_ARB_render_t"
"exture WGL_ARB_make_current_re"
"ad WGL_EXT_extensions_string W"
"GL_ARB_buffer_region ";
}
GLAPI const char * GLAPIENTRY
wglGetExtensionsStringEXT (void)
{
return
// "WGL_EXT_swap_control "
"WGL_EXT_extensions_string WGL_ARB_extensions_string"
/*WGL_ARB_pixel_format WGL_ARB_render_texture WGL_ARB_pbuffer*/;
/* WGL_ARB_render_texture */
return "WGL_ARB_extensions_string WGL_"
"ARB_pixel_format WGL_ARB_multi"
"sample WGL_EXT_swap_control WG"
"L_ARB_pbuffer WGL_ARB_render_t"
"exture WGL_ARB_make_current_re"
"ad WGL_EXT_extensions_string W"
"GL_ARB_buffer_region ";
}
GLAPI BOOL GLAPIENTRY
+1 -1
View File
@@ -320,7 +320,7 @@ static struct {
{"wglGetExtensionsStringEXT", (PROC)wglGetExtensionsStringEXT},
{"wglSwapIntervalEXT", (PROC)wglSwapIntervalEXT},
{"wglGetSwapIntervalEXT", (PROC)wglGetSwapIntervalEXT},
// {"wglGetPixelFormatAttribivARB", (PROC)wglGetPixelFormatAttribivARB},
// {"wglGetPixelFormatAttribivARB", (PROC)wglGetPixelFormatAttribivARB},
// {"wglGetPixelFormatAttribfvARB", (PROC)wglGetPixelFormatAttribfvARB},
{"wglChoosePixelFormatARB", (PROC)wglChoosePixelFormatARB},
// {"wglCreatePbufferARB", (PROC)wglCreatePbufferARB},