mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[OPENGL32] Fix the order of the specified callbacks for the DrvSetCallbackProcs() call.
References: - https://github.com/OpenSWR/openswr/blob/master/ogldriver/wgl.cpp - https://github.com/Igalia/mesa/blob/master/src/gallium/state_trackers/wgl/stw_icd.h - "OpenGL Installable Client Driver, Version 1.101 -- Reference Guide" by Microsoft Corporation.
This commit is contained in:
parent
a8fa5394ef
commit
05b052fee2
1 changed files with 3 additions and 2 deletions
|
@ -287,10 +287,11 @@ custom_end:
|
||||||
DrvSetCallbackProcs = (void*)GetProcAddress(data->hModule, "DrvSetCallbackProcs");
|
DrvSetCallbackProcs = (void*)GetProcAddress(data->hModule, "DrvSetCallbackProcs");
|
||||||
if(DrvSetCallbackProcs)
|
if(DrvSetCallbackProcs)
|
||||||
{
|
{
|
||||||
PROC callbacks[] = {(PROC)wglGetCurrentValue,
|
PROC callbacks[] = {
|
||||||
(PROC)wglSetCurrentValue,
|
(PROC)wglSetCurrentValue,
|
||||||
|
(PROC)wglGetCurrentValue,
|
||||||
(PROC)wglGetDHGLRC};
|
(PROC)wglGetDHGLRC};
|
||||||
DrvSetCallbackProcs(3, callbacks);
|
DrvSetCallbackProcs(ARRAYSIZE(callbacks), callbacks);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the DLL exports */
|
/* Get the DLL exports */
|
||||||
|
|
Loading…
Reference in a new issue