Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 5a59bc17fdfbddc45fc0919d88cbb808162ff826..66588c46bce32c1f161e52ce532e3ca2d8ecf6a9 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -388,11 +388,14 @@ GrTexture* GrContext::createTexture(const GrTextureParams* params, |
GrTexture* texture; |
if (GrTextureImpl::NeedsResizing(resourceKey)) { |
+ // We do not know how to resize compressed textures. |
+ SkASSERT(!GrPixelConfigIsCompressed(desc.fConfig)); |
+ |
texture = this->createResizedTexture(desc, cacheID, |
srcData, rowBytes, |
GrTextureImpl::NeedsBilerp(resourceKey)); |
} else { |
- texture= fGpu->createTexture(desc, srcData, rowBytes); |
+ texture = fGpu->createTexture(desc, srcData, rowBytes); |
} |
if (NULL != texture) { |