[Mesa-dev] [PATCH 1/2] mesa: add GLAPIENTRY to new _context_lost_X functions

Brian Paul brianp at vmware.com
Wed May 25 17:59:52 UTC 2016


To fix MSVC build.  Any function which goes into the dispatch table
needs to have the GLAPIENTRY (__stdcall) tag.
---
 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 125b03a..8989b08 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);
-- 
1.9.1



More information about the mesa-dev mailing list