summaryrefslogtreecommitdiff
path: root/libs/hwui/TextureCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2010-06-30 19:23:08 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-06-30 19:23:08 -0700
commitc18a9f20516f91b00eaec0cefbf795eca08d4d6a (patch)
tree022c6c145e5b8002ac76b810a97a1b4d5258e3ef /libs/hwui/TextureCache.cpp
parent7940e8472b7bbcaf957cc2df116184d587674d00 (diff)
parent8ba548f81d1ab5f1750cbf86098c4a14e0b8bead (diff)
Merge "Add implementation for drawBitmap(Bitmap, Rect, Rect, Paint)"
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r--libs/hwui/TextureCache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp
index 4e1650771310..7b8b31398188 100644
--- a/libs/hwui/TextureCache.cpp
+++ b/libs/hwui/TextureCache.cpp
@@ -92,6 +92,7 @@ void TextureCache::generateTexture(SkBitmap* bitmap, Texture* texture, bool rege
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);