#include <string.h>
#include "os_string.hpp"
+
+#include "d3dstate.hpp"
#include "retrace.hpp"
#include "d3dretrace.hpp"
-extern const char *g_szD3D9DllName;
+IDirect3DDevice9 *
+d3dretrace::pLastDirect3DDevice9 = NULL;
void
image::Image *
retrace::getSnapshot(void) {
- return NULL;
+ if (!d3dretrace::pLastDirect3DDevice9) {
+ return NULL;
+ }
+
+ return d3dstate::getRenderTargetImage(d3dretrace::pLastDirect3DDevice9);
}