From: Brian Paul Date: Fri, 3 Oct 2014 15:55:34 +0000 (-0600) Subject: st/wgl: add WINAPI qualifiers on wgl function typedefs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90dc71b454296c1950c83a4243352890cdbcf26e;p=mesa.git st/wgl: add WINAPI qualifiers on wgl function typedefs Fixes a release build segfault when wglCreateContextAttribsARB() calls the wglCreateContext() function. Cc: "10.3" Reviewed-by: Matthew McClure --- diff --git a/src/gallium/state_trackers/wgl/stw_ext_context.c b/src/gallium/state_trackers/wgl/stw_ext_context.c index bc8d5c244e8..451f3300209 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;