Merge "Don't crash when omitting paint to drawBitmap() with A8 configs."

This commit is contained in:
Romain Guy
2011-03-23 17:19:24 -07:00
committed by Android (Google) Code Review

View File

@@ -1099,7 +1099,9 @@ void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, Sk
setupDraw();
setupDrawWithTexture(true);
setupDrawAlpha8Color(paint->getColor(), alpha);
if (paint) {
setupDrawAlpha8Color(paint->getColor(), alpha);
}
setupDrawColorFilter();
setupDrawShader();
setupDrawBlending(true, mode);