Stefan Dösinger : opengl32: Give wglSwapBuffers a real function, make it hookable.
Alexandre Julliard
julliard at winehq.org
Thu Oct 15 08:54:40 CDT 2009
Module: wine
Branch: master
Commit: 49012919905d2ace7dd6f2546b78780f54a58735
URL: http://source.winehq.org/git/wine.git/?a=commit;h=49012919905d2ace7dd6f2546b78780f54a58735
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Oct 14 23:20:20 2009 +0200
opengl32: Give wglSwapBuffers a real function, make it hookable.
---
dlls/opengl32/make_opengl | 2 +-
dlls/opengl32/opengl32.spec | 2 +-
dlls/opengl32/wgl.c | 7 +++++++
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl
index a1bd02b..c98cd45 100755
--- a/dlls/opengl32/make_opengl
+++ b/dlls/opengl32/make_opengl
@@ -665,7 +665,7 @@ print SPEC "@ stdcall wglChoosePixelFormat(long ptr) gdi32.ChoosePixelFormat
@ stdcall wglSetLayerPaletteEntries(long long long long ptr)
@ stdcall wglSetPixelFormat(long long ptr) gdi32.SetPixelFormat
@ stdcall wglShareLists(long long) gdi32.wglShareLists
-@ stdcall wglSwapBuffers(long) gdi32.SwapBuffers
+@ stdcall wglSwapBuffers(long)
@ stdcall wglSwapLayerBuffers(long long)
@ stdcall wglUseFontBitmapsA(long long long long) gdi32.wglUseFontBitmapsA
@ stdcall wglUseFontBitmapsW(long long long long) gdi32.wglUseFontBitmapsW
diff --git a/dlls/opengl32/opengl32.spec b/dlls/opengl32/opengl32.spec
index a965771..238b12a 100644
--- a/dlls/opengl32/opengl32.spec
+++ b/dlls/opengl32/opengl32.spec
@@ -352,7 +352,7 @@
@ stdcall wglSetLayerPaletteEntries(long long long long ptr)
@ stdcall wglSetPixelFormat(long long ptr) gdi32.SetPixelFormat
@ stdcall wglShareLists(long long) gdi32.wglShareLists
-@ stdcall wglSwapBuffers(long) gdi32.SwapBuffers
+@ stdcall wglSwapBuffers(long)
@ stdcall wglSwapLayerBuffers(long long)
@ stdcall wglUseFontBitmapsA(long long long long) gdi32.wglUseFontBitmapsA
@ stdcall wglUseFontBitmapsW(long long long long) gdi32.wglUseFontBitmapsW
diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
index 34f7f07..f6cf469 100644
--- a/dlls/opengl32/wgl.c
+++ b/dlls/opengl32/wgl.c
@@ -690,6 +690,13 @@ void WINAPI wine_glGetIntegerv( GLenum pname, GLint* params )
wine_wgl.p_wglGetIntegerv(pname, params);
}
+/***********************************************************************
+ * wglSwapBuffers (OPENGL32.@)
+ */
+BOOL WINAPI DECLSPEC_HOTPATCH wglSwapBuffers( HDC hdc )
+{
+ return SwapBuffers(hdc);
+}
/* This is for brain-dead applications that use OpenGL functions before even
creating a rendering context.... */
More information about the wine-cvs
mailing list