Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index 716909133a733d28bb03efafe13d214384e47d98..84023ecbb6cd0c8ce8d7d1c5aa16081a0dbd6549 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -87,7 +87,7 @@ GrPixelConfig GrIsCompressedTextureDataSupported(GrContext* ctx, SkData* data, |
*outStartOfDataToUpload = bytes + ETC_PKM_HEADER_SIZE; |
return kETC1_GrPixelConfig; |
- } else if (SkKTXFile::is_ktx(bytes)) { |
+ } else if (SkKTXFile::is_ktx(bytes, data->size())) { |
SkKTXFile ktx(data); |
// Is it actually an ETC1 texture? |