mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:02:56 +00:00
[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:
parent
b060a81d5d
commit
31acac46a1
5 changed files with 38 additions and 3710 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue