[PATCH] Remove some GetDC(0) related tests from the wgl make current tests. It causes issues on Win9x and second calling wglMakeCurrent( GetDC(0) ) doesn't make sense although some buggy ATI (?) drivers seem to allow it.

Roderick Colenbrander (none) roderick at roderick-laptop.
Sun Sep 28 11:10:09 CDT 2008


---
 dlls/opengl32/tests/opengl.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index 808b6c7..65c47c6 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -274,10 +274,6 @@ static void test_makecurrent(HDC winhdc)
 {
     BOOL ret;
     HGLRC hglrc;
-    HDC hdc;
-
-    hdc = GetDC(0);
-    ok( hdc != 0, "GetDC(0) failed\n" );
 
     hglrc = wglCreateContext(winhdc);
     ok( hglrc != 0, "wglCreateContext failed\n" );
@@ -286,15 +282,6 @@ static void test_makecurrent(HDC winhdc)
     ok( ret, "wglMakeCurrent failed\n" );
 
     ok( wglGetCurrentContext() == hglrc, "wrong context\n" );
-
-    SetLastError( 0xdeadbeef );
-    ret = wglMakeCurrent( hdc, hglrc );
-    ok( !ret, "wglMakeCurrent succeeded\n" );
-    ok( GetLastError() == ERROR_INVALID_PIXEL_FORMAT, "last error %u\n", GetLastError() );
-
-    ok( wglGetCurrentContext() == hglrc, "wrong context\n" );
-
-    ReleaseDC( 0, hdc );
 }
 
 static void test_colorbits(HDC hdc)
-- 
1.5.4.3


--========GMX187791222618923843977--



More information about the wine-patches mailing list