| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index 5a59bc17fdfbddc45fc0919d88cbb808162ff826..005d7e785e6dc1cd29d3b1fdd0c894576364f1d2 100644
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -388,11 +388,18 @@ 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);
|
| + if(GrPixelConfigIsCompressed(desc.fConfig)) {
|
| + texture = fGpu->createCompressedTexture(desc, srcData);
|
| + } else {
|
| + texture = fGpu->createTexture(desc, srcData, rowBytes);
|
| + }
|
| }
|
|
|
| if (NULL != texture) {
|
|
|