opengl32: Fix wglCreateContextAttribsARB test on vista/win7 where Nvidia drivers return hresults instead of win32 errors.
This commit is contained in:
parent
5edac26628
commit
ca1d79b26c
|
@ -581,7 +581,9 @@ static void test_opengl3(HDC hdc)
|
|||
gl3Ctx = pwglCreateContextAttribsARB(hdc, (HGLRC)0xdeadbeef, 0);
|
||||
todo_wine ok(gl3Ctx == 0, "pwglCreateContextAttribsARB using an invalid shareList passed\n");
|
||||
error = GetLastError();
|
||||
todo_wine ok(error == ERROR_INVALID_OPERATION, "Expected ERROR_INVALID_OPERATION, got error=%x\n", error);
|
||||
/* The Nvidia implementation seems to return hresults instead of win32 error codes */
|
||||
todo_wine ok(error == ERROR_INVALID_OPERATION ||
|
||||
error == HRESULT_FROM_WIN32(ERROR_INVALID_OPERATION), "Expected ERROR_INVALID_OPERATION, got error=%x\n", error);
|
||||
wglDeleteContext(gl3Ctx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue