From 1e45aae5de003657e5d18f74d34998f5de5db5b7 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 13 Aug 2010 19:39:53 -0700 Subject: Add drop shadows. Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b --- libs/hwui/PathCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/PathCache.cpp') diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp index 9a22dc0a41e0..10440ea3cebf 100644 --- a/libs/hwui/PathCache.cpp +++ b/libs/hwui/PathCache.cpp @@ -166,7 +166,7 @@ void PathCache::generateTexture(SkBitmap& bitmap, Texture* texture) { glPixelStorei(GL_UNPACK_ALIGNMENT, 1); texture->blend = true; - glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, bitmap.rowBytesAsPixels(), texture->height, 0, + glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, texture->width, texture->height, 0, GL_ALPHA, GL_UNSIGNED_BYTE, bitmap.getPixels()); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); -- cgit v1.2.3-59-g8ed1b