From: José Fonseca Date: Thu, 13 Oct 2011 07:26:27 +0000 (+0100) Subject: Handle GLenums disguised as GLdoubles too. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=e3571090ed6c62ba63507dcbd143980f1c3a707a;p=apitrace Handle GLenums disguised as GLdoubles too. --- diff --git a/gltrace.py b/gltrace.py index 69be821..f3b82df 100644 --- a/gltrace.py +++ b/gltrace.py @@ -668,7 +668,7 @@ class GlTracer(Tracer): # Several GL state functions take GLenum symbolic names as # integer/floats; so dump the symbolic name whenever possible if function.name.startswith('gl') \ - and arg.type in (glapi.GLint, glapi.GLfloat) \ + and arg.type in (glapi.GLint, glapi.GLfloat, glapi.GLdouble) \ and arg.name == 'param': assert arg.index > 0 assert function.args[arg.index - 1].name == 'pname'