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:
ef0c697
)
Fix major regression in D3D tracing.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Tue, 13 Mar 2012 20:21:54 +0000
(20:21 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Tue, 13 Mar 2012 20:21:54 +0000
(20:21 +0000)
We don't keep reference count in the interface wrappers. Furthermore,
calling the interface wrapper's AddRef method inside other methods leads
to corrupted traces.
trace.py
patch
|
blob
|
history
diff --git
a/trace.py
b/trace.py
index
bd97772
..
3f385fa
100644
(file)
--- a/
trace.py
+++ b/
trace.py
@@
-542,8
+542,6
@@
class Tracer:
def wrapIid(self, riid, out):
print ' if (%s && *%s) {' % (out.name, out.name)
print ' if (*%s == m_pInstance) {' % (out.name,)
- print ' AddRef();'
- print ' m_pInstance->Release();'
print ' *%s = this;' % (out.name,)
print ' }'
for iface in self.api.getAllInterfaces():