From a566b7c3aada08d37cf08096c972e3e641bed773 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Sun, 23 Jan 2011 16:36:11 -0800 Subject: Fix bitmap meshes to work in display lists. Change-Id: Ie226d049840942d9ad9cf58e0c19132f49d62a75 --- libs/hwui/OpenGLRenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/OpenGLRenderer.cpp') diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 2467d8ef7943..e8dc9f6cfd86 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1094,10 +1094,10 @@ void OpenGLRenderer::drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHei SkXfermode::Mode mode; getAlphaAndMode(paint, &alpha, &mode); - // TODO: Support the colors array const uint32_t count = meshWidth * meshHeight * 6; - TextureVertex mesh[count]; + // TODO: Support the colors array + TextureVertex mesh[count]; TextureVertex* vertex = mesh; for (int32_t y = 0; y < meshHeight; y++) { for (int32_t x = 0; x < meshWidth; x++) { -- cgit v1.2.3-59-g8ed1b