Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
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,
-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
You can’t perform that action at this time.