From ae7c4a6f9805673932205f76003d95476729f2ee Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 25 May 2016 11:45:13 -0600 Subject: [PATCH] mesa: add GLAPIENTRY to new _context_lost_X functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/mesa/main/getstring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2