# glGetError is not allowed inside glBegin/glEnd
print ' glretrace::checkGlError(call.no);'
+ if function.name == 'glFlush':
+ print ' if (!glretrace::double_buffer) {'
+ print ' glretrace::frame_complete(call.no);'
+ print ' }'
+
def extract_arg(self, function, arg, arg_type, lvalue, rvalue):
if function.name in self.array_pointer_function_names and arg.name == 'pointer':
print ' %s = static_cast<%s>(%s.blob());' % (lvalue, arg_type, rvalue)
}
-static void frame_complete(unsigned call_no) {
+void frame_complete(unsigned call_no) {
++frame;
if (snapshot_prefix || compare_prefix) {
skipCall = true;
}
- if (name == "glFlush") {
- glFlush();
- if (!double_buffer) {
- frame_complete(call->no);
- }
- }
-
if (!skipCall) {
retrace::retrace_call(*call);
}