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 (!glretrace::context && !retrace::benchmark && !retrace::profiling) {'
print r' retrace::warning(call) << "no current context\n";'
print r' }'
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::benchmark && !retrace::profiling && !glretrace::insideGlBeginEnd) {'
print ' glretrace::checkGlError(call);'
if function.name in ('glProgramStringARB', 'glProgramStringNV'):
print r' GLint error_position = -1;'
long long startTime = 0;
bool wait = false;
-bool benchmark = false;
static const char *compare_prefix = NULL;
static const char *snapshot_prefix = NULL;
static trace::CallSet snapshot_frequency;
if (!strcmp(arg, "--")) {
break;
} else if (!strcmp(arg, "-b")) {
- benchmark = true;
+ retrace::benchmark = true;
retrace::verbosity = -1;
glws::debug = false;
} else if (!strcmp(arg, "-p")) {