From 5639126509506f30bea6a8126dc1110401b369c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 19 Sep 2011 09:30:10 +0100 Subject: [PATCH] More descriptive framebuffer error codes. --- glretrace.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glretrace.py b/glretrace.py index 671d164..53afdbe 100644 --- a/glretrace.py +++ b/glretrace.py @@ -298,13 +298,13 @@ class GlRetracer(Retracer): if function.name in ('glGetAttribLocation', 'glGetAttribLocationARB'): print r' GLint __orig_result = call.ret->toSInt();' print r' if (__result != __orig_result) {' - print r' std::cerr << call.no << ": warning vertex attrib location mismatch " << __orig_result << " -> " << __result << "\n";' + print r' std::cerr << call.no << ": warning: vertex attrib location mismatch " << __orig_result << " -> " << __result << "\n";' print r' }' if function.name in ('glCheckFramebufferStatus', 'glCheckFramebufferStatusEXT', 'glCheckNamedFramebufferStatusEXT'): print r' GLint __orig_result = call.ret->toSInt();' print r' if (__orig_result == GL_FRAMEBUFFER_COMPLETE &&' print r' __result != GL_FRAMEBUFFER_COMPLETE) {' - print r' std::cerr << call.no << ": incomplete framebuffer (" << __result << ")\n";' + print r' std::cerr << call.no << ": warning: incomplete framebuffer (" << glstate::enumToString(__result) << ")\n";' print r' }' print ' }' @@ -351,6 +351,7 @@ if __name__ == '__main__': #include "glproc.hpp" #include "glretrace.hpp" +#include "glstate.hpp" ''' -- 2.7.4