Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix major regression in D3D tracing.

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.
  • Loading branch information...
commit ed58f5d5cc9fdc9d045a8a74651df68cd118998e 1 parent ef0c697
@jrfonseca jrfonseca authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  trace.py
View
2  trace.py
@@ -542,8 +542,6 @@ def implementWrapperInterfaceMethodBody(self, interface, base, method):
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():
Please sign in to comment.
Something went wrong with that request. Please try again.