From: Brian Paul Date: Wed, 25 May 2016 17:45:13 +0000 (-0600) Subject: mesa: add GLAPIENTRY to new _context_lost_X functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae7c4a6f9805673932205f76003d95476729f2ee;p=mesa.git mesa: add GLAPIENTRY to new _context_lost_X functions To fix MSVC build. Any function which goes into the dispatch table needs to have the GLAPIENTRY (__stdcall) tag. Reviewed-by: Kristian Høgsberg Kristensen --- diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c index 125b03aeca6..8989b08a15f 100644 --- a/src/mesa/main/getstring.c +++ b/src/mesa/main/getstring.c @@ -311,7 +311,7 @@ _mesa_GetError( void ) return e; } -static void +static void GLAPIENTRY _context_lost_GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values) { @@ -323,7 +323,7 @@ _context_lost_GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *len *values = GL_SIGNALED; } -static void +static void GLAPIENTRY _context_lost_GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) { GET_CURRENT_CONTEXT(ctx);