Index: include/core/SkReadBuffer.h |
diff --git a/include/core/SkReadBuffer.h b/include/core/SkReadBuffer.h |
index 3befb4251224f96425a6d96c12606e3f00485f2f..3cb31a0e809c2e2f9b61e8f912d370f544f3f66d 100644 |
--- a/include/core/SkReadBuffer.h |
+++ b/include/core/SkReadBuffer.h |
@@ -46,7 +46,7 @@ public: |
/** This may be called at most once; most clients of SkReadBuffer should not mess with it. */ |
void setPictureVersion(int version) { |
- SkASSERT(0 == fPictureVersion); |
+ SkASSERT(0 == fPictureVersion || version == fPictureVersion); |
fPictureVersion = version; |
} |