From c4ca0c166c75e04f7a5ecff391799b1fb91b8774 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Tue, 27 Nov 2007 19:49:49 +0000 Subject: [PATCH] adding the last hack we need for wined3d. This bug is wine, not our or windows fault And I also wrote down all three change we have done in wined3d. -------------------------------------------------------------------------------------- Thx Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth) for the last hack svn path=/trunk/; revision=30822 --- reactos/dll/directx/wine/wined3d/directx.c | 3 ++- reactos/dll/directx/wine/wined3d/roshacks.txt | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 reactos/dll/directx/wine/wined3d/roshacks.txt diff --git a/reactos/dll/directx/wine/wined3d/directx.c b/reactos/dll/directx/wine/wined3d/directx.c index f106321b445..493714d2d45 100644 --- a/reactos/dll/directx/wine/wined3d/directx.c +++ b/reactos/dll/directx/wine/wined3d/directx.c @@ -183,7 +183,8 @@ static void WineD3D_ReleaseFakeGLContext(void) { if(!wined3d_fake_gl_context_foreign && glCtx) { TRACE_(d3d_caps)("destroying fake GL context\n"); pwglMakeCurrent(NULL, NULL); - pwglDeleteContext(glCtx); + //ros hack, this line does destire the real icd interface in windows and reactos + // pwglDeleteContext(glCtx); } if(wined3d_fake_gl_context_hdc) ReleaseDC(wined3d_fake_gl_context_hwnd, wined3d_fake_gl_context_hdc); diff --git a/reactos/dll/directx/wine/wined3d/roshacks.txt b/reactos/dll/directx/wine/wined3d/roshacks.txt new file mode 100644 index 00000000000..b4b4151d3c1 --- /dev/null +++ b/reactos/dll/directx/wine/wined3d/roshacks.txt @@ -0,0 +1,13 @@ +Note +directx.c +----------- +gdi32.dll to opengl32.dll +comment out line 186 as well in function +WineD3D_ReleaseFakeGLContext +row pwglDeleteContext(glCtx); + + + +wined3d_private.h +------------------ +add #define ceilf(x) (float)ceil((double)x) \ No newline at end of file