diff options
author | Romain Guy <romainguy@google.com> | 2010-08-13 19:39:53 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-08-13 19:41:14 -0700 |
commit | 1e45aae5de003657e5d18f74d34998f5de5db5b7 (patch) | |
tree | 355320038d0de8ed9b39c0cd3d3865b7fbbae1fd /libs/hwui/PathCache.cpp | |
parent | 029a74a38b56b97cbfe02b3d8e23536cea71609d (diff) | |
download | frameworks_base-1e45aae5de003657e5d18f74d34998f5de5db5b7.zip frameworks_base-1e45aae5de003657e5d18f74d34998f5de5db5b7.tar.gz frameworks_base-1e45aae5de003657e5d18f74d34998f5de5db5b7.tar.bz2 |
Add drop shadows.
Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r-- | libs/hwui/PathCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp index 9a22dc0..10440ea 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); |