| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index baa002a54a5a0c387789e78b1003f4dc4399e955..d49e67a5f2dec41f7df87489014ba95dfc878cfd 100644
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -362,6 +362,10 @@ GrTexture* GrContext::createResizedTexture(const GrTextureDesc& desc,
|
| // no longer need to clamp at min RT size.
|
| rtDesc.fWidth = GrNextPow2(desc.fWidth);
|
| rtDesc.fHeight = GrNextPow2(desc.fHeight);
|
| +
|
| + // We shouldn't be resizing a compressed texture.
|
| + SkASSERT(!GrPixelConfigIsCompressed(desc.fConfig));
|
| +
|
| size_t bpp = GrBytesPerPixel(desc.fConfig);
|
| SkAutoSMalloc<128*128*4> stretchedPixels(bpp * rtDesc.fWidth * rtDesc.fHeight);
|
| stretch_image(stretchedPixels.get(), rtDesc.fWidth, rtDesc.fHeight,
|
|
|