Index: tools/render_pictures_main.cpp |
=================================================================== |
--- tools/render_pictures_main.cpp (revision 8115) |
+++ tools/render_pictures_main.cpp (working copy) |
@@ -163,7 +163,7 @@ |
success = render_picture(inputPath, NULL, referenceRenderer, |
&referenceBitmap); |
- if (!success || !referenceBitmap) { |
+ if (!success || NULL == referenceBitmap || NULL == referenceBitmap->getPixels()) { |
SkDebugf("Failed to draw the reference picture.\n"); |
SkDELETE(bitmap); |
SkDELETE(referenceBitmap); |