mesa: add GLAPIENTRY to new _context_lost_X functions
authorBrian Paul <brianp@vmware.com>
Wed, 25 May 2016 17:45:13 +0000 (11:45 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 25 May 2016 18:23:12 +0000 (12:23 -0600)
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 <krh@bitplanet.net>
src/mesa/main/getstring.c

index 125b03aeca6dcec8489259c271b3023737b5d9f4..8989b08a15ffea4e86c7bfa8d28c34f9410bebe6 100644 (file)
@@ -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);