]> git.cworth.org Git - apitrace/commitdiff
Revert "Human legible d3d9 error messages."
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 20 Apr 2012 20:30:08 +0000 (21:30 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 20 Apr 2012 20:30:08 +0000 (21:30 +0100)
This reverts commit 6fac7b94c57cb084204dfad6430dfd22d30f33f7.

retrace/CMakeLists.txt
retrace/d3dretrace.py

index fe9191bf4841cbd37e785cd3f309fd1939f1bfa1..8cc9cd8f2d17dbbcfe17b34f297165b703de8a5d 100644 (file)
@@ -147,7 +147,6 @@ if (WIN32 AND DirectX_D3DX9_INCLUDE_DIR)
         common
         ${ZLIB_LIBRARIES}
         ${SNAPPY_LIBRARIES}
-        dxerr9
     )
     
     install (TARGETS d3dretrace RUNTIME DESTINATION bin) 
index 46baf6d27472a0c1eb39bf8226ff7ad3e6db0c25..4a78e96a7206b4c7def25ca13e3ba848802b48f7 100644 (file)
@@ -61,9 +61,8 @@ class D3DRetracer(Retracer):
         Retracer.invokeInterfaceMethod(self, interface, method)
 
         if str(method.type) == 'HRESULT':
-            print r'    if (FAILED(_result)) {'
-            print r'        retrace::warning(call) << DXGetErrorString9(_result) << ": " << DXGetErrorDescription9(_result) << "\n";'
-            print r'        return;'
+            print r'    if (_result != S_OK) {'
+            print r'        retrace::warning(call) << "failed\n";'
             print r'    }'
 
         if interface.name in self.bufferInterfaceNames and method.name == 'Lock':
@@ -86,7 +85,6 @@ if __name__ == '__main__':
 #include <iostream>
 
 #include "d3d9imports.hpp"
-#include <dxerr9.h>
 #include "d3dretrace.hpp"