Skip to content

Commit

Permalink
d3dretrace: Terminate when CreateDevice fails.
Browse files Browse the repository at this point in the history
Like we do for D3D10+.
  • Loading branch information
jrfonseca committed Apr 8, 2014
1 parent d85b927 commit a86667c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions retrace/d3d9retrace.py
Expand Up @@ -123,6 +123,11 @@ def invokeInterfaceMethod(self, interface, method):

Retracer.invokeInterfaceMethod(self, interface, method)

if method.name in self.createDeviceMethodNames:
print r' if (FAILED(_result)) {'
print r' exit(1);'
print r' }'

# process events after presents
if method.name == 'Present':
print r' d3dretrace::processEvents();'
Expand Down

0 comments on commit a86667c

Please sign in to comment.