summaryrefslogtreecommitdiffstats
path: root/libs/hwui/TextureCache.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-06-30 19:21:21 -0700
committerRomain Guy <romainguy@google.com>2010-06-30 19:21:21 -0700
commit8ba548f81d1ab5f1750cbf86098c4a14e0b8bead (patch)
treecac0b8552a14e0b01809d1d67840953e144d7383 /libs/hwui/TextureCache.cpp
parente07f6eeb3af2defe99fbd63a73b8e636139edd1a (diff)
downloadframeworks_base-8ba548f81d1ab5f1750cbf86098c4a14e0b8bead.zip
frameworks_base-8ba548f81d1ab5f1750cbf86098c4a14e0b8bead.tar.gz
frameworks_base-8ba548f81d1ab5f1750cbf86098c4a14e0b8bead.tar.bz2
Add implementation for drawBitmap(Bitmap, Rect, Rect, Paint)
Change-Id: I10904d2325a5431d15801aebcec1048715678e8c
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 4e16507..7b8b313 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);