]> git.cworth.org Git - apitrace/blobdiff - d3d9.py
Fix and cleanup state lookups on frames.
[apitrace] / d3d9.py
diff --git a/d3d9.py b/d3d9.py
index b99cf0d7e29a554ee4ec06fc857f871a27a35a69..640d218dc7a8c2b4726d142cd268e6ec92e128ca 100644 (file)
--- a/d3d9.py
+++ b/d3d9.py
@@ -445,7 +445,7 @@ d3d9.add_functions([
     StdFunction(Void, "D3DPERF_SetMarker", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")]),
     StdFunction(Void, "D3DPERF_SetRegion", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")]),
     StdFunction(BOOL, "D3DPERF_QueryRepeatFrame", [], fail='FALSE'),
-    StdFunction(Void, "D3DPERF_SetOptions", [(DWORD, "dwOptions")], fail=''),
+    StdFunction(Void, "D3DPERF_SetOptions", [(DWORD, "dwOptions")]),
     StdFunction(DWORD, "D3DPERF_GetStatus", [], fail='0'),
 ])
 
@@ -455,7 +455,7 @@ class D3D9Tracer(DllTracer):
     def dump_arg_instance(self, function, arg):
         # Dump shaders as strings
         if function.name in ('CreateVertexShader', 'CreatePixelShader') and arg.name == 'pFunction':
-            print '    DumpShader(__writer, %s);' % (arg.name)
+            print '    DumpShader(Trace::localWriter, %s);' % (arg.name)
             return
 
         DllTracer.dump_arg_instance(self, function, arg)