]> git.cworth.org Git - apitrace/blobdiff - retrace/d3dretrace.py
Don't retrace calls that failed when tracing.
[apitrace] / retrace / d3dretrace.py
index 9990f1b89f7bda1d92cf7fc5d0c91913ba321c0a..a04e01def391870b815a68ff54884f3685561f0d 100644 (file)
@@ -67,7 +67,7 @@ class D3DRetracer(Retracer):
 
         # check errors
         if str(method.type) == 'HRESULT':
-            print r'    if (_result != S_OK) {'
+            print r'    if (FAILED(_result)) {'
             print r'        retrace::warning(call) << "failed\n";'
             print r'    }'