[OPENGL32]

- Get rid of the default stub table, use NULL instead
 - Simplify stub code by using the appropriate macros
CORE-14024
This commit is contained in:
Jérôme Gardou 2017-11-20 00:26:11 +01:00 committed by Jérôme Gardou
parent b060a81d5d
commit 31acac46a1
5 changed files with 38 additions and 3710 deletions

View file

@ -696,7 +696,7 @@ BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
ERR("DrvSetContext failed!\n");
/* revert */
InterlockedExchange(&ctx->thread_id, 0);
IntSetCurrentDispatchTable(&StubTable.glDispatchTable);
IntSetCurrentDispatchTable(NULL);
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
@ -728,8 +728,7 @@ BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
InterlockedExchange(&old_ctx->thread_id, 0);
/* Unset it */
IntMakeCurrent(NULL, NULL, NULL);
/* Reset the no-op table */
set_api_table(&StubTable);
IntSetCurrentDispatchTable(NULL);
/* Test conformance (extreme cases) */
return hglrc == NULL;
}