Commit 74ec0c55 authored by Martin Schultz's avatar Martin Schultz

* fixed missing APIENTRY prefixes for windows MSVC

parent b8ab7bc8
......@@ -26,7 +26,7 @@ const char *debugSeverityName( GLenum _type );
void ACGLRegisterDefaultDebugCallback();
//! default debug callback
void ACGL_KHR_default_debug_callback( GLenum _source, GLenum _type, GLuint _id, GLenum _severity, GLsizei _length, const GLchar *_message, const void *_userParam);
void APIENTRY ACGL_KHR_default_debug_callback( GLenum _source, GLenum _type, GLuint _id, GLenum _severity, GLsizei _length, const GLchar *_message, const void *_userParam);
} // OpenGL
} // ACGL
......
......@@ -65,7 +65,7 @@ void ACGLRegisterDefaultDebugCallback()
}
//! place a brakepoint in here to find the source of a problem!
void ACGL_KHR_default_debug_callback( GLenum _source, GLenum _type, GLuint _id, GLenum _severity, GLsizei _length, const GLchar *_message, const void *_userParam)
void APIENTRY ACGL_KHR_default_debug_callback( GLenum _source, GLenum _type, GLuint _id, GLenum _severity, GLsizei _length, const GLchar *_message, const void *_userParam)
{
ostream& stream = (_type == GL_DEBUG_TYPE_ERROR) ? static_cast<ostream&>(error()) : static_cast<ostream&>(debug());
......
......@@ -598,7 +598,7 @@ void APIENTRY KHR_DEBUG_EMULATOR_CHECK_GL_ERROR();
// glGetError
// needs to return the last error even if this KHR_debug emulator already got the error code
//
GLenum KHR_DEBUG_EMULATOR_GetError() {
GLenum APIENTRY KHR_DEBUG_EMULATOR_GetError() {
// if there was an error, report it. if not report the last global error
// which might got set by the automatic error checks
GLenum currentError = _original_glGetError();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment