diff options
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
| -rw-r--r-- | libs/hwui/PatchCache.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp index c23e99155a11..dc69d7f193ca 100644 --- a/libs/hwui/PatchCache.cpp +++ b/libs/hwui/PatchCache.cpp @@ -118,10 +118,10 @@ const Patch* PatchCache::get(const AssetAtlas::Entry* entry, if (entry) { vertices = newMesh->createMesh(bitmapWidth, bitmapHeight, - 0.0f, 0.0f, pixelWidth, pixelHeight, entry->uvMapper, patch); + pixelWidth, pixelHeight, entry->uvMapper, patch); } else { vertices = newMesh->createMesh(bitmapWidth, bitmapHeight, - 0.0f, 0.0f, pixelWidth, pixelHeight, patch); + pixelWidth, pixelHeight, patch); } if (vertices) { @@ -141,8 +141,6 @@ const Patch* PatchCache::get(const AssetAtlas::Entry* entry, mSize += size; glBufferSubData(GL_ARRAY_BUFFER, newMesh->offset, size, vertices); - - delete[] vertices; } mCache.put(description, newMesh); |