Index: src/gpu/GrTexture.cpp |
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp |
index 667ddd1e513670113a579dbc7f16bee47da5bced..8130b43b37913a25002988909dcbd7a7af69576f 100644 |
--- a/src/gpu/GrTexture.cpp |
+++ b/src/gpu/GrTexture.cpp |
@@ -172,7 +172,7 @@ GrResourceKey::ResourceFlags get_texture_flags(const GrGpu* gpu, |
GrResourceKey::ResourceFlags flags = 0; |
bool tiled = params && params->isTiled(); |
if (tiled && !gpu->caps()->npotTextureTileSupport()) { |
- if (!SkIsPow2(desc.fWidth) || !SkIsPow2(desc.fHeight)) { |
+ if (!SkIsPow2(desc.fWidth) || !SkIsPow2(desc.fHeight) || !SkIsPow2(desc.fDepth)) { |
flags |= kStretchToPOT_TextureFlag; |
switch(params->filterMode()) { |
case GrTextureParams::kNone_FilterMode: |