summaryrefslogtreecommitdiff
path: root/retrace/d3d9retrace.py
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-07-16 12:31:10 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-07-16 12:31:54 +0100
commite39d56edca49495aa401ffd22a35da4a10a1fd38 (patch)
treedf115fcf67d0b550efeb52500866c462d3db650c /retrace/d3d9retrace.py
parent7d810e5c522d146a3ee6d13b9422110119a3689f (diff)
d3dretrace: Fetch snapshots from swapchain.
Instead of current rendertarget.
Diffstat (limited to 'retrace/d3d9retrace.py')
-rw-r--r--retrace/d3d9retrace.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/retrace/d3d9retrace.py b/retrace/d3d9retrace.py
index 0850e057..3f2754af 100644
--- a/retrace/d3d9retrace.py
+++ b/retrace/d3d9retrace.py
@@ -164,6 +164,8 @@ class D3DRetracer(Retracer):
# notify frame has been completed
if method.name in ('Present', 'PresentEx'):
+ if interface.name.startswith('IDirect3DSwapChain9'):
+ print r' d3d9scDumper.bindDevice(_this);'
print r' retrace::frameComplete(call);'
print r' hDestWindowOverride = NULL;'
@@ -254,6 +256,7 @@ def main():
api.addModule(d3d9)
print
print '''static d3dretrace::D3DDumper<IDirect3DDevice9> d3d9Dumper;'''
+ print '''static d3dretrace::D3DDumper<IDirect3DSwapChain9> d3d9scDumper;'''
print
elif moduleName == 'd3d8':
from specs.d3d8 import d3d8