Handle GLenums disguised as GLdoubles too.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 13 Oct 2011 07:26:27 +0000 (08:26 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 13 Oct 2011 07:26:27 +0000 (08:26 +0100)
gltrace.py

index 69be821..f3b82df 100644 (file)
@@ -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'