projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71f48cf
)
Handle GLenums disguised as GLdoubles too.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Thu, 13 Oct 2011 07:26:27 +0000
(08:26 +0100)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Thu, 13 Oct 2011 07:26:27 +0000
(08:26 +0100)
gltrace.py
patch
|
blob
|
history
diff --git
a/gltrace.py
b/gltrace.py
index
69be821
..
f3b82df
100644
(file)
--- 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'