X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fglretrace.py;h=b7659ff1dd6bcd37e6268a3fa7b22c2c43a55527;hb=83b46c2a02200b41f6177b6da2ba421b4fc482f7;hp=a73ca1ae4530cb8fde0d40d846936ef2bbdbe930;hpb=632a78d5c90941c896fa3c7156131f27c5a58b24;p=apitrace diff --git a/retrace/glretrace.py b/retrace/glretrace.py index a73ca1a..b7659ff 100644 --- a/retrace/glretrace.py +++ b/retrace/glretrace.py @@ -215,7 +215,7 @@ class GlRetracer(Retracer): # Post-snapshots if function.name in ('glFlush', 'glFinish'): - print ' if (!glretrace::double_buffer) {' + print ' if (!retrace::doubleBuffer) {' print ' glretrace::frame_complete(call);' print ' }' if is_draw_array or is_draw_elements or is_misc_draw: @@ -250,7 +250,7 @@ class GlRetracer(Retracer): print ' glretrace::insideGlBeginEnd = false;' if function.name.startswith('gl') and not function.name.startswith('glX'): - print r' if (!glretrace::context && !glretrace::benchmark && !retrace::profiling) {' + print r' if (retrace::debug && !glretrace::currentContext) {' print r' retrace::warning(call) << "no current context\n";' print r' }' @@ -286,7 +286,7 @@ class GlRetracer(Retracer): print ' glretrace::insideGlBeginEnd = true;' elif function.name.startswith('gl'): # glGetError is not allowed inside glBegin/glEnd - print ' if (!glretrace::benchmark && !retrace::profiling && !glretrace::insideGlBeginEnd) {' + print ' if (retrace::debug && !glretrace::insideGlBeginEnd) {' print ' glretrace::checkGlError(call);' if function.name in ('glProgramStringARB', 'glProgramStringNV'): print r' GLint error_position = -1;'