Author: greatlrd
Date: Tue Nov 27 22:49:49 2007
New Revision: 30822
URL: http://svn.reactos.org/svn/reactos?rev=30822&view=rev
Log:
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
Added:
trunk/reactos/dll/directx/wine/wined3d/roshacks.txt (with props)
Modified:
trunk/reactos/dll/directx/wine/wined3d/directx.c
Modified: trunk/reactos/dll/directx/wine/wined3d/directx.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/wined3d/d…
==============================================================================
--- trunk/reactos/dll/directx/wine/wined3d/directx.c (original)
+++ trunk/reactos/dll/directx/wine/wined3d/directx.c Tue Nov 27 22:49:49 2007
@@ -183,7 +183,8 @@
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);
Added: trunk/reactos/dll/directx/wine/wined3d/roshacks.txt
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/wined3d/r…
==============================================================================
--- trunk/reactos/dll/directx/wine/wined3d/roshacks.txt (added)
+++ trunk/reactos/dll/directx/wine/wined3d/roshacks.txt Tue Nov 27 22:49:49 2007
@@ -1,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)
Propchange: trunk/reactos/dll/directx/wine/wined3d/roshacks.txt
------------------------------------------------------------------------------
svn:eol-style = native
Author: fireball
Date: Tue Nov 27 16:27:39 2007
New Revision: 30818
URL: http://svn.reactos.org/svn/reactos?rev=30818&view=rev
Log:
- Add a reset of a "failure" flag in a successive case. Previous behavior was scary, that once a failure occured, it was always freeing all further entries.
- Readd what was removed in 30812.
- Herve Poussineaue really did all work on tracing down the problem, spending much time writing debug/check routines, I would not spot this bug without him.
See issue #2545 for more details.
Modified:
trunk/reactos/ntoskrnl/ex/handle.c
Modified: trunk/reactos/ntoskrnl/ex/handle.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/handle.c?rev=3…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/handle.c (original)
+++ trunk/reactos/ntoskrnl/ex/handle.c Tue Nov 27 16:27:39 2007
@@ -1120,8 +1120,12 @@
HandleTableEntry,
NewEntry))
{
- /* Lock the entry */
+ /* Clear failure flag */
+ Failed = FALSE;
+
+ /* Lock the entry, increase the handle count */
NewEntry->Value |= EXHANDLE_TABLE_ENTRY_LOCK_BIT;
+ NewTable->HandleCount++;
}
else
{