st/wgl: add WINAPI qualifiers on wgl function typedefs

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>
This commit is contained in:
Brian Paul 2014-10-03 09:55:34 -06:00
parent 7297bdbd50
commit 90dc71b454

View file

@ -50,8 +50,8 @@
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;