| Index: src/images/SkImageDecoder_ktx.cpp
|
| diff --git a/src/images/SkImageDecoder_ktx.cpp b/src/images/SkImageDecoder_ktx.cpp
|
| index c2606321c2516c74d543dbc32afcc285e89398b5..058ab7264695cb8c6cfb7274f2d0a87646850ee6 100644
|
| --- a/src/images/SkImageDecoder_ktx.cpp
|
| +++ b/src/images/SkImageDecoder_ktx.cpp
|
| @@ -209,6 +209,9 @@ private:
|
| };
|
|
|
| bool SkKTXImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int) {
|
| + if (!bitmap.pixelRef()) {
|
| + return false;
|
| + }
|
| SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData());
|
|
|
| // Is this even encoded data?
|
|
|