diff options
-rw-r--r-- | src/gpu/GrTextureProxy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrTextureProxy.cpp b/src/gpu/GrTextureProxy.cpp index 72b810620d..d15b611edb 100644 --- a/src/gpu/GrTextureProxy.cpp +++ b/src/gpu/GrTextureProxy.cpp @@ -149,7 +149,8 @@ void GrTextureProxy::validateLazySurface(const GrSurface* surface) { // Anything that is checked here should be duplicated in GrTextureRenderTargetProxy's version SkASSERT(surface->asTexture()); - SkASSERT(surface->asTexture()->texturePriv().mipMapped() == this->mipMapped()); + SkASSERT(GrMipMapped::kNo == this->mipMapped() || + GrMipMapped::kYes == surface->asTexture()->texturePriv().mipMapped()); } #endif |