diff options
author | 2010-07-13 17:41:31 -0700 | |
---|---|---|
committer | 2010-07-13 17:41:31 -0700 | |
commit | 594f4065141a53427cad6f4fc89219d2f27e1a7d (patch) | |
tree | 0b162df7ee27b40e519c5471f7ce0743617ecd73 /libs/hwui/TextureCache.cpp | |
parent | 46c076d193fe91721912d3bfa8e5a6d24707b5bc (diff) |
Enable 32-bits only assets.
Go away dithering!
Change-Id: Iee5ee2e9430606e732d9b0abb3adc9f68275bd6d
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r-- | libs/hwui/TextureCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp index 612f04e5570e..4977f46f73dd 100644 --- a/libs/hwui/TextureCache.cpp +++ b/libs/hwui/TextureCache.cpp @@ -133,7 +133,7 @@ void TextureCache::generateTexture(SkBitmap* bitmap, Texture* texture, bool rege GL_RGB, GL_UNSIGNED_SHORT_5_6_5, bitmap->getPixels()); break; case SkBitmap::kARGB_8888_Config: - texture->blend = true; + texture->blend = !bitmap->isOpaque(); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap->rowBytesAsPixels(), texture->height, 0, GL_RGBA, GL_UNSIGNED_BYTE, bitmap->getPixels()); break; |