Fixes a release build segfault when wglCreateContextAttribsARB()
calls the wglCreateContext() function.
Cc: "10.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matthew McClure <mcclurem@vmware.com>
HGLRC WINAPI
wglCreateContextAttribsARB(HDC hDC, HGLRC hShareContext, const int *attribList)
{
- typedef HGLRC (*wglCreateContext_t)(HDC hdc);
- typedef BOOL (*wglDeleteContext_t)(HGLRC hglrc);
+ typedef HGLRC (WINAPI *wglCreateContext_t)(HDC hdc);
+ typedef BOOL (WINAPI *wglDeleteContext_t)(HGLRC hglrc);
HGLRC context;
static HMODULE opengl_lib = 0;
static wglCreateContext_t wglCreateContext_func = 0;