summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2012-06-22 19:36:31 +0100
committerJosé Fonseca <jose.r.fonseca@gmail.com>2012-06-22 19:36:31 +0100
commit9cb30bec22c1c277a0bfb45628a0a59c36b1cfc5 (patch)
treecadec8838ce3626e6eb51989d4bed1686340de63
parentc56812ec33a67fe51185e314bfa80ac22af6bbfb (diff)
Handle windows when retracing CreateAdditionalSwapChain
-rw-r--r--retrace/d3dretrace.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/retrace/d3dretrace.py b/retrace/d3dretrace.py
index 32701611..a43289cc 100644
--- a/retrace/d3dretrace.py
+++ b/retrace/d3dretrace.py
@@ -48,14 +48,16 @@ class D3DRetracer(Retracer):
print r' d3dretrace::pLastDirect3DDevice9 = _this;'
# create windows as neccessary
- if method.name in ('CreateDevice', 'CreateDeviceEx'):
+ if method.name in ('CreateDevice', 'CreateDeviceEx', 'CreateAdditionalSwapChain'):
print r' HWND hWnd = d3dretrace::createWindow(pPresentationParameters->BackBufferWidth, pPresentationParameters->BackBufferHeight);'
- print r' hFocusWindow = hWnd;'
print r' pPresentationParameters->hDeviceWindow = hWnd;'
+ if 'hFocusWindow' in method.argNames():
+ print r' hFocusWindow = hWnd;'
# notify frame has been completed
if method.name == 'Present':
print r' retrace::frameComplete(call);'
+ print r' hDestWindowOverride = NULL;'
if 'pSharedHandle' in method.argNames():
print r' if (pSharedHandle) {'