Re: Add wglGetExtensionsStringARB to opengl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> If this works, can you resubmit your patch by changing the
>   'static const char *WGL_extensions = "";'
> line to
>   'static const char *WGL_extensions = "WGL_ARB_extensions_string WGL_EXT_extensions_string";'
> 
> And to have wglGetExtensionsStringARB returning what
> wglGetExtensionsStringEXT returns ?

I hope I did it the right way :)

Bye, Michael
diff -u wine-0.20030503.034225/dlls/opengl32/opengl32.spec wine-0.20030503.034225-patched/dlls/opengl32/opengl32.spec
--- wine-0.20030503.034225/dlls/opengl32/opengl32.spec	2003-03-20 04:53:13.000000000 +0100
+++ wine-0.20030503.034225-patched/dlls/opengl32/opengl32.spec	2003-05-04 00:39:41.000000000 +0200
@@ -6,6 +6,7 @@
 @  stdcall wglGetCurrentContext()
 @  stdcall wglGetCurrentDC()
 @  stdcall wglGetExtensionsStringEXT()
+@  stdcall wglGetExtensionsStringARB(long)
 @  stdcall wglGetLayerPaletteEntries(long long long long ptr)
 @  stdcall wglGetProcAddress(str)
 @  stdcall wglMakeCurrent(long long)
diff -u wine-0.20030503.034225/dlls/opengl32/wgl.c wine-0.20030503.034225-patched/dlls/opengl32/wgl.c
--- wine-0.20030503.034225/dlls/opengl32/wgl.c	2003-04-22 06:05:08.000000000 +0200
+++ wine-0.20030503.034225-patched/dlls/opengl32/wgl.c	2003-05-04 01:02:58.000000000 +0200
@@ -653,7 +653,7 @@
 }
 
 /* Some WGL extensions... */
-static const char *WGL_extensions = "";
+static const char *WGL_extensions = "WGL_ARB_extensions_string WGL_EXT_extensions_string";
 
 const char * WINAPI wglGetExtensionsStringEXT(void) {
     TRACE("() returning \"%s\"\n", WGL_extensions);
@@ -667,6 +667,15 @@
 }
 
 /***********************************************************************
+ *              wglGetExtensionsStringARB(OPENGL32.@)
+ */
+const char * WINAPI wglGetExtensionsStringARB(HDC hdc) {
+
+  return wglGetExtensionsStringEXT();
+}
+
+
+/***********************************************************************
  *           OpenGL initialisation routine
  */
 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
diff -u wine-0.20030503.034225/dlls/opengl32/wgl.h wine-0.20030503.034225-patched/dlls/opengl32/wgl.h
--- wine-0.20030503.034225/dlls/opengl32/wgl.h	2002-06-01 01:25:51.000000000 +0200
+++ wine-0.20030503.034225-patched/dlls/opengl32/wgl.h	2003-05-04 00:52:29.000000000 +0200
@@ -112,6 +112,6 @@
 			       FLOAT extrusion,
 			       int format,
 			       LPGLYPHMETRICSFLOAT lpgmf) ;
-
+const char * WINAPI wglGetExtensionsStringARB(HDC hdc) ;
 #endif /* __DLLS_OPENGL32_WGL_H */

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux