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
This commit is contained in:
Magnus Olsen 2007-11-27 19:49:49 +00:00
parent 2ff760ccdf
commit c4ca0c166c
2 changed files with 15 additions and 1 deletions

View 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);

View file

@ -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)