mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
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:
parent
7297bdbd50
commit
90dc71b454
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue