Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index d259d2fb141e9e2f7cc524f162672387e2804f98..29add839bd636db2032bc9bb7e439e29c991606d 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -3197,6 +3197,7 @@ void GrGLGpu::bindTexture(int unitIdx, const GrTextureParams& params, bool dstCo |
if (GrTextureParams::kMipMap_FilterMode == filterMode) { |
if (texture->texturePriv().mipMapsAreDirty()) { |
+ this->setTextureUnit(unitIdx); |
GL_CALL(GenerateMipmap(target)); |
texture->texturePriv().dirtyMipMaps(false); |
texture->texturePriv().setMaxMipMapLevel(SkMipMap::ComputeLevelCount( |