Added CALLBACK to the gluTess callback function definitions. This for windows.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
diff --git a/src/FTPolyGlyph.cpp b/src/FTPolyGlyph.cpp
index d828cc8..f400bbe 100644
--- a/src/FTPolyGlyph.cpp
+++ b/src/FTPolyGlyph.cpp
@@ -11,7 +11,7 @@
#endif
-void ftglError( GLenum errCode)
+void CALLBACK ftglError( GLenum errCode)
{
// const GLubyte* estring;
// estring = gluErrorString( errCode);
@@ -19,25 +19,25 @@ void ftglError( GLenum errCode)
// exit(1);
}
-void ftglVertex( void* data)
+void CALLBACK ftglVertex( void* data)
{
glVertex3dv( (double*)data);
}
-void ftglBegin( GLenum type)
+void CALLBACK ftglBegin( GLenum type)
{
glBegin( type);
}
-void ftglEnd()
+void CALLBACK ftglEnd()
{
glEnd();
}
-void ftglCombine( GLdouble coords[3], void* vertex_data[4], GLfloat weight[4], void** outData)
+void CALLBACK ftglCombine( GLdouble coords[3], void* vertex_data[4], GLfloat weight[4], void** outData)
{
double* vertex = new double[3]; // FIXME MEM LEAK