diff options
| author | 2014-06-10 17:41:49 +0800 | |
|---|---|---|
| committer | 2014-06-16 09:29:22 +0530 | |
| commit | 4a473c7d9406a2d6f6792f0f48d933424740ec5c (patch) | |
| tree | dbbeedb8b150c6f5531dd152fcefe10208129167 /libs/hwui/Layer.cpp | |
| parent | 1a3908e95926acd8add3858be571fe23fa9d047a (diff) | |
Fix the texture ID reuse issue in HWUI.
Issue: When the layer of previous frame is destroyed, it doesn't clear the
texture id in mBoundTextures[mTextureUnit], so in the next frame, if
glGenTexture returns same texture ID of the previous frame,
the new texture is not bound.
CRs-fixed: 671736
Change-Id: Ifc5fd2115fb1863b3c006ab14b0faabeaeb4eab4
Diffstat (limited to 'libs/hwui/Layer.cpp')
| -rw-r--r-- | libs/hwui/Layer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index bd371a3bcef4..987bf03bb863 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -171,6 +171,7 @@ void Layer::deleteTexture() { } void Layer::clearTexture() { + caches.unbindTexture(texture.id); texture.id = 0; } |