[PATCH] Mark three opengl3 test as todo_wine. One of them is meant for testing windowless rendering which is a new opengl3 feature but at this point no Linux or Windows driver offers this feature (only Nvidia has drivers at this point). The other two tests test error codes in case of invalid HDC and HGLRC but current Windows opengl3 drivers don't return the codes from the specs. They return the same error codes as they do for invalid HGLRC and HDC values using standard WGL calls. For that reason I have emailed the maintainer of the WGL_ARB_create_context spec. Until I have an answer we don't know what to set,

Roderick Colenbrander thunderbird2k at gmx.net
Sat Oct 25 14:53:38 CDT 2008


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

diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index 8b5aa4a..35eb8ae 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -446,7 +446,7 @@ static void test_opengl3(HDC hdc)
         gl3Ctx = pwglCreateContextAttribsARB((HDC)0xdeadbeef, 0, 0);
         ok(gl3Ctx == 0, "pwglCreateContextAttribsARB using an invalid HDC passed\n");
         error = GetLastError();
-        ok(error == ERROR_DC_NOT_FOUND, "Expected ERROR_DC_NOT_FOUND, got error=%x\n", error);
+        todo_wine ok(error == ERROR_DC_NOT_FOUND, "Expected ERROR_DC_NOT_FOUND, got error=%x\n", error);
         wglDeleteContext(gl3Ctx);
     }
 
@@ -457,7 +457,7 @@ static void test_opengl3(HDC hdc)
         gl3Ctx = pwglCreateContextAttribsARB(hdc, (HGLRC)0xdeadbeef, 0);
         ok(gl3Ctx == 0, "pwglCreateContextAttribsARB using an invalid shareList passed\n");
         error = GetLastError();
-        ok(error == ERROR_INVALID_OPERATION, "Expected ERROR_INVALID_OPERATION, got error=%x\n", error);
+        todo_wine ok(error == ERROR_INVALID_OPERATION, "Expected ERROR_INVALID_OPERATION, got error=%x\n", error);
         wglDeleteContext(gl3Ctx);
     }
 
@@ -508,7 +508,7 @@ static void test_opengl3(HDC hdc)
         /* OpenGL 3.0 allows offscreen rendering WITHOUT a drawable */
         /* NOTE: Nvidia's 177.89 beta drivers don't allow this yet */
         res = wglMakeCurrent(0, gl3Ctx);
-        ok(res == TRUE, "OpenGL 3.0 should allow windowless rendering, but the test failed!\n");
+        todo_wine ok(res == TRUE, "OpenGL 3.0 should allow windowless rendering, but the test failed!\n");
         if(res)
             wglMakeCurrent(0, 0);
 
-- 
1.5.3.4


--========GMX25318122506087528636--



More information about the wine-patches mailing list