Created
June 9, 2014 20:14
-
-
Save Ancurio/cc74862c3e0e321954b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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