From 06915cc354e0f6f6adfb7d06b1abf25a3d83d426 Mon Sep 17 00:00:00 2001 From: hiker Date: Tue, 2 Sep 2014 09:51:30 +1000 Subject: [PATCH] Fix compilation on very old mesa versions. vlj, please check. --- src/graphics/glwrap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/glwrap.cpp b/src/graphics/glwrap.cpp index dabd4a83c..7f797f1fa 100644 --- a/src/graphics/glwrap.cpp +++ b/src/graphics/glwrap.cpp @@ -121,9 +121,11 @@ CALLBACK debugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* msg, const void *userparam) { +#ifdef GL_DEBUG_SEVERITY_NOTIFICATION // ignore minor notifications sent by some drivers (notably the nvidia one) if (severity == GL_DEBUG_SEVERITY_NOTIFICATION) return; +#endif switch(source) {