]> git.cworth.org Git - apitrace/blobdiff - retrace/json.cpp
d3d10state: Dump rendertargets.
[apitrace] / retrace / json.cpp
index bb901c2e5fbcec1c7833f9e3ae855868a88a49db..53a61a3a79c3af115d51e89c083564a23bb9a19b 100644 (file)
@@ -304,6 +304,11 @@ JSONWriter::writeBool(bool b) {
 void
 JSONWriter::writeImage(image::Image *image, const char *format, unsigned depth)
 {
+    if (!image) {
+        writeNull();
+        return;
+    }
+
     beginObject();
 
     // Tell the GUI this is no ordinary object, but an image