summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/wgl
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-10-03 09:55:34 -0600
committerBrian Paul <brianp@vmware.com>2014-10-03 13:45:52 -0600
commit90dc71b454296c1950c83a4243352890cdbcf26e (patch)
tree3b51c035ca1d4025ff73d8040ef72437be6111b5 /src/gallium/state_trackers/wgl
parent7297bdbd50eb039878fe9e472dc736e1259710fb (diff)
downloadexternal_mesa3d-90dc71b454296c1950c83a4243352890cdbcf26e.zip
external_mesa3d-90dc71b454296c1950c83a4243352890cdbcf26e.tar.gz
external_mesa3d-90dc71b454296c1950c83a4243352890cdbcf26e.tar.bz2
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>
Diffstat (limited to 'src/gallium/state_trackers/wgl')
-rw-r--r--src/gallium/state_trackers/wgl/stw_ext_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_ext_context.c b/src/gallium/state_trackers/wgl/stw_ext_context.c
index bc8d5c2..451f330 100644
--- a/src/gallium/state_trackers/wgl/stw_ext_context.c
+++ b/src/gallium/state_trackers/wgl/stw_ext_context.c
@@ -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;