Author: akhaldi
Date: Sat Jun 3 22:34:42 2017
New Revision: 74834
URL:
http://svn.reactos.org/svn/reactos?rev=74834&view=rev
Log:
[OPENGL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
Modified:
trunk/rostests/winetests/opengl32/opengl.c
Modified: trunk/rostests/winetests/opengl32/opengl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/opengl32/opengl…
==============================================================================
--- trunk/rostests/winetests/opengl32/opengl.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/opengl32/opengl.c [iso-8859-1] Sat Jun 3 22:34:42 2017
@@ -713,6 +713,9 @@
glGetIntegerv( GL_VIEWPORT, viewport );
ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 12
&& viewport[3] == 12,
"wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1],
viewport[2], viewport[3] );
+
+ wglDeleteContext(hglrc2);
+ wglDeleteContext(hglrc);
}
}
@@ -927,12 +930,13 @@
{
HGLRC gl3Ctx;
DWORD error;
+ SetLastError(0xdeadbeef);
gl3Ctx = pwglCreateContextAttribsARB((HDC)0xdeadbeef, 0, 0);
ok(gl3Ctx == 0, "pwglCreateContextAttribsARB using an invalid HDC
passed\n");
error = GetLastError();
- todo_wine ok(error == ERROR_DC_NOT_FOUND ||
- broken(error == NVIDIA_HRESULT_FROM_WIN32(ERROR_INVALID_DATA)), /*
Nvidia Vista + Win7 */
- "Expected ERROR_DC_NOT_FOUND, got error=%x\n", error);
+ ok(error == ERROR_DC_NOT_FOUND ||
+ broken(error == NVIDIA_HRESULT_FROM_WIN32(ERROR_INVALID_DATA)), /* Nvidia
Vista + Win7 */
+ "Expected ERROR_DC_NOT_FOUND, got error=%x\n", error);
wglDeleteContext(gl3Ctx);
}
@@ -940,12 +944,13 @@
{
HGLRC gl3Ctx;
DWORD error;
+ SetLastError(0xdeadbeef);
gl3Ctx = pwglCreateContextAttribsARB(hdc, (HGLRC)0xdeadbeef, 0);
ok(gl3Ctx == 0, "pwglCreateContextAttribsARB using an invalid shareList
passed\n");
error = GetLastError();
/* The Nvidia implementation seems to return hresults instead of win32 error
codes */
- todo_wine ok(error == ERROR_INVALID_OPERATION ||
- error == NVIDIA_HRESULT_FROM_WIN32(ERROR_INVALID_OPERATION),
"Expected ERROR_INVALID_OPERATION, got error=%x\n", error);
+ ok(error == ERROR_INVALID_OPERATION ||
+ error == NVIDIA_HRESULT_FROM_WIN32(ERROR_INVALID_OPERATION), "Expected
ERROR_INVALID_OPERATION, got error=%x\n", error);
wglDeleteContext(gl3Ctx);
}