adding the last hack we need for wined3d. This bug is wine, not our or windows fault
authorMagnus Olsen <magnus@greatlord.com>
Tue, 27 Nov 2007 19:49:49 +0000 (19:49 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Tue, 27 Nov 2007 19:49:49 +0000 (19:49 +0000)
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
reactos/dll/directx/wine/wined3d/roshacks.txt [new file with mode: 0644]

index f106321..493714d 100644 (file)
@@ -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 (file)
index 0000000..b4b4151
--- /dev/null
@@ -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