diff options
| author | Romain Guy <romainguy@android.com> | 2010-07-16 15:07:42 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@android.com> | 2010-07-16 15:07:42 -0700 |
| commit | 1e79386ba34f0db38c1b35b22cdf122632534354 (patch) | |
| tree | 35c3fe20c2dc66823ac1c7970e395748d8fe52a3 /libs/hwui/TextureCache.cpp | |
| parent | 079ba2c85b15e882629b8d188f5fbdb42f7f8eea (diff) | |
| download | frameworks_base-1e79386ba34f0db38c1b35b22cdf122632534354.zip frameworks_base-1e79386ba34f0db38c1b35b22cdf122632534354.tar.gz frameworks_base-1e79386ba34f0db38c1b35b22cdf122632534354.tar.bz2 | |
Optimize textures binding.
The renderer is still changing textures' wrap modes every time, this will require
a latter optimization.
Change-Id: I3eb92cb8c886c4a692b7f0ca759911f9371d4d2c
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
| -rw-r--r-- | libs/hwui/TextureCache.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp index 4977f46..ff7d7c9 100644 --- a/libs/hwui/TextureCache.cpp +++ b/libs/hwui/TextureCache.cpp @@ -146,8 +146,6 @@ void TextureCache::generateTexture(SkBitmap* bitmap, Texture* texture, bool rege glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); - - glBindTexture(GL_TEXTURE_2D, 0); } }; // namespace uirenderer |
