Add wglGetExtensionsStringARB to opengl

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

 



Hi,

this patch adds wglGetExtensionsStringARB to the opengl.dll. I don't
know if it really does all in the proper way. So somebody with more
opengl experiences should take a look at the patch before including it.

With this patch it I was able to start "Star Trek: Elite Force II Demo"
(http://www.st-ef2.com/) but got a "err:ntdll:RtlpWaitForCriticalSection
section 0xa84928 "?" wait timed out, retrying (60 sec) tid=000c" in the
main menu.

Have a lot of fun, 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-03 19:55:31.000000000 +0200
@@ -15,6 +15,7 @@
 @  stdcall wglSwapLayerBuffers(long long)
 @  stdcall wglUseFontBitmapsA(long long long long)
 @  stdcall wglUseFontOutlinesA(long long long long long long long ptr)
+@  stdcall wglGetExtensionsStringARB(long)
 @  stub    glGetLevelParameterfv
 @  stub    glGetLevelParameteriv
 @  stub    wglUseFontBitmapsW
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-03 21:15:03.000000000 +0200
@@ -667,6 +667,18 @@
 }
 
 /***********************************************************************
+ *              wglGetExtensionsStringARB(OPENGL32.@)
+ */
+const char *WGL_ARBextensions = "";
+
+char * WINAPI wglGetExtensionsStringARB(HDC hdc) {
+
+  WGL_ARBextensions = glXQueryExtensionsString (glXGetCurrentDisplay(),DefaultScreen(glXGetCurrentDisplay())) ;
+
+  return WGL_ARBextensions;
+}
+
+/***********************************************************************
  *           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-03 20:15:19.000000000 +0200
@@ -112,6 +112,6 @@
 			       FLOAT extrusion,
 			       int format,
 			       LPGLYPHMETRICSFLOAT lpgmf) ;
-
+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