Skip to content

Instantly share code, notes, and snippets.

@Ancurio
Created June 9, 2014 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ancurio/cc74862c3e0e321954b7 to your computer and use it in GitHub Desktop.
Save Ancurio/cc74862c3e0e321954b7 to your computer and use it in GitHub Desktop.
diff --git a/src/debuglogger.cpp b/src/debuglogger.cpp
index 4301bdd..768f05e 100644
--- a/src/debuglogger.cpp
+++ b/src/debuglogger.cpp
@@ -25,6 +25,10 @@
#include <glew.h>
#include <iostream>
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+
struct DebugLoggerPrivate
{
std::ostream *stream;
@@ -53,7 +57,7 @@ struct DebugLoggerPrivate
}
};
-static void amdDebugFunc(GLuint id,
+static void APIENTRY amdDebugFunc(GLuint id,
GLenum category,
GLenum severity,
GLsizei length,
@@ -71,7 +75,7 @@ static void amdDebugFunc(GLuint id,
p->writeLine(message);
}
-static void arbDebugFunc(GLenum source,
+static void APIENTRY arbDebugFunc(GLenum source,
GLenum type,
GLuint id,
GLenum severity,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment