[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:
Hermès Bélusca-Maïto 2019-04-22 18:29:43 +02:00
parent a8fa5394ef
commit 05b052fee2
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -287,10 +287,11 @@ custom_end:
DrvSetCallbackProcs = (void*)GetProcAddress(data->hModule, "DrvSetCallbackProcs");
if(DrvSetCallbackProcs)
{
PROC callbacks[] = {(PROC)wglGetCurrentValue,
PROC callbacks[] = {
(PROC)wglSetCurrentValue,
(PROC)wglGetCurrentValue,
(PROC)wglGetDHGLRC};
DrvSetCallbackProcs(3, callbacks);
DrvSetCallbackProcs(ARRAYSIZE(callbacks), callbacks);
}
/* Get the DLL exports */