]> git.cworth.org Git - apitrace/blobdiff - retrace/d3dretrace_main.cpp
Don't attempt to dump built-in uniforms.
[apitrace] / retrace / d3dretrace_main.cpp
index 6035e77b544bd221f201de3fabefbabca240082c..40d53eafb1b946201a076cb996b8dddb5d12202e 100644 (file)
@@ -40,7 +40,13 @@ d3dretrace::pLastDirect3DDevice9 = NULL;
 void
 retrace::setUp(void) {
     if (retrace::debug) {
-        g_szD3D9DllName = "d3d9d.dll";
+        /* 
+         * XXX: D3D9D only works for simple things, it often introduces errors
+         * on complex traces, or traces which use unofficial D3D9 features.
+         */
+        if (0) {
+            g_szD3D9DllName = "d3d9d.dll";
+        }
     }
 }
 
@@ -65,7 +71,13 @@ retrace::getSnapshot(void) {
 bool
 retrace::dumpState(std::ostream &os)
 {
-    return false;
+    if (!d3dretrace::pLastDirect3DDevice9) {
+        return false;
+    }
+
+    d3dstate::dumpDevice(os, d3dretrace::pLastDirect3DDevice9);
+
+    return true;
 }