X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.cpp;h=f075684dbb9284ce0ec0a5c51bc022d7070c8671;hp=c183bf63366602d03b974a11f36bd12df33cf2ee;hb=dfd021b1505fb3924ae103d8aa27c6200d6ec3fd;hpb=4f60a4a972fa76800580f8731aba54a8fe94e1fb diff --git a/src/screen.cpp b/src/screen.cpp index c183bf6..f075684 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -16,7 +16,11 @@ using namespace std; static void opengl_debug_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* msg, const void *data) { - Error("OpenGL Error (%d): %s", id, msg); + // Don't print out gl Errors we generated. + if (source == GL_DEBUG_SOURCE_APPLICATION) return; + //Error("OpenGL Error (%d): %s", id, msg); + // Spams this message on fglrx, disabling for now because it's damn annoying. + // ERROR: opengl_debug_callback (screen.cpp:21) - OpenGL Error (1011): glObjectLabel failed because (depending on the operation) a referenced binding point is empty; a referenced name is not the name of an object; or the given name is otherwise not valid to this operation (GL_INVALID_VALUE) }