]> git.cworth.org Git - apitrace/blobdiff - retrace/d3dretrace_main.cpp
d3dretrace: Eliminate differences between d3d9/d3d10.
[apitrace] / retrace / d3dretrace_main.cpp
index 40d53eafb1b946201a076cb996b8dddb5d12202e..a19511a0439e29f8df336c94a36a138faa79411d 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "os_string.hpp"
 
-#include "d3dstate.hpp"
+#include "d3d9state.hpp"
 #include "retrace.hpp"
 #include "d3dretrace.hpp"
 
@@ -39,22 +39,13 @@ d3dretrace::pLastDirect3DDevice9 = NULL;
 
 void
 retrace::setUp(void) {
-    if (retrace::debug) {
-        /* 
-         * 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";
-        }
-    }
 }
 
 
 void
 retrace::addCallbacks(retrace::Retracer &retracer)
 {
-    retracer.addCallbacks(d3dretrace::d3d9_callbacks);
+    retracer.addCallbacks(d3dretrace::d3d_callbacks);
 }
 
 
@@ -87,6 +78,7 @@ retrace::flushRendering(void) {
 
 void
 retrace::waitForInput(void) {
+    /* TODO */
 }
 
 void