X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glretrace.py;h=345e154f10d0ec7429da792334a1d0156248de43;hb=96a8349e179dd4891932ef18d3bdd091ec69a7aa;hp=2736a9fb52e4d6b375e321d4a6b1ff548dac1b33;hpb=d0c9175f4e930773d732fd4a0de3d1f87da83012;p=apitrace diff --git a/glretrace.py b/glretrace.py index 2736a9f..345e154 100644 --- a/glretrace.py +++ b/glretrace.py @@ -103,7 +103,7 @@ class GlRetracer(Retracer): is_draw_elements = function.name in self.draw_elements_function_names if is_array_pointer or is_draw_array or is_draw_elements: - print ' if (Trace::Parser::version < 1) {' + print ' if (glretrace::parser.version < 1) {' if is_array_pointer or is_draw_array: print ' GLint __array_buffer = 0;' @@ -149,7 +149,7 @@ class GlRetracer(Retracer): print ' glretrace::insideGlBeginEnd = true;' else: # glGetError is not allowed inside glBegin/glEnd - print ' glretrace::checkGlError();' + print ' glretrace::checkGlError(call.no);' def extract_arg(self, function, arg, arg_type, lvalue, rvalue): if function.name in self.array_pointer_function_names and arg.name == 'pointer':