Skip to content
Permalink
Browse files

[OPENGL32] Fix the order of the specified callbacks for the DrvSetCal…

…lbackProcs() 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.
  • Loading branch information...
HBelusca committed Apr 22, 2019
1 parent a8fa539 commit 05b052fee2fb6d6a6db83ec5855ad8971e100051
Showing with 3 additions and 2 deletions.
  1. +3 −2 dll/opengl/opengl32/icdload.c
@@ -287,10 +287,11 @@ struct ICD_Data* IntGetIcdData(HDC hdc)
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 */

0 comments on commit 05b052f

Please sign in to comment.
You can’t perform that action at this time.