diff options
author | José Fonseca <jfonseca@vmware.com> | 2012-11-28 12:56:01 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2012-11-28 12:56:01 +0000 |
commit | 65ba497caca56134f9b4f18658d104ce89092c11 (patch) | |
tree | 122d67d09faf06bbb8144b8061719ab64ea23ad6 /retrace/json.cpp | |
parent | 4e0bfee3af9a3cc752d1a62ff8a09a649a7b2357 (diff) |
d3d10state: Dump rendertargets.
Diffstat (limited to 'retrace/json.cpp')
-rw-r--r-- | retrace/json.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/retrace/json.cpp b/retrace/json.cpp index bb901c2e..53a61a3a 100644 --- a/retrace/json.cpp +++ b/retrace/json.cpp @@ -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 |