Fix calling convention of GL debug callback;
@@ -1226,7 +1226,7 @@ static void lovrGpuSetViewports(float* viewport, uint32_t count) {
// GPU
-static void onMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userdata) {
+static void GLAPIENTRY onMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userdata) {
int level;
switch (severity) {
case GL_DEBUG_SEVERITY_HIGH: level = LOG_ERROR; break;
