diff options
author | Romain Guy <romainguy@google.com> | 2013-05-24 16:19:19 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2013-05-24 16:19:19 -0700 |
commit | a404e16e4933857464046d763ed7629cd0c86cbf (patch) | |
tree | fec5bfa47138b29d22b25b9d87dc84ebfea7f1e6 /libs/hwui/OpenGLRenderer.cpp | |
parent | 64770d16b0907a8e1ee81ef6c8fa398a6bdbee79 (diff) | |
download | frameworks_base-a404e16e4933857464046d763ed7629cd0c86cbf.zip frameworks_base-a404e16e4933857464046d763ed7629cd0c86cbf.tar.gz frameworks_base-a404e16e4933857464046d763ed7629cd0c86cbf.tar.bz2 |
Make sure atlas antries can correctly filter/wrap textures
The virtual textures would each have their own values for wrapping
and filtering which could lead to conflict and/or extraneous GL
commands being issued.
Change-Id: I64cb59a03e598f46bf645bd1d30fccfa63a07431
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 2465b48..f12119a 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -2352,7 +2352,7 @@ status_t OpenGLRenderer::drawPatch(SkBitmap* bitmap, Res_png_9patch* patch, if (CC_LIKELY(mesh && mesh->verticesCount > 0)) { mCaches.activeTexture(0); - Texture* texture = entry ? &entry->texture : mCaches.textureCache.get(bitmap); + Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap); if (!texture) return DrawGlInfo::kStatusDone; const AutoTexture autoCleanup(texture); |