summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2012-03-26 14:52:00 -0700
committer Romain Guy <romainguy@google.com> 2012-03-26 14:52:00 -0700
commita9dd820184ee4d083bd9b2af735dcf50b78fc6cd (patch)
tree7ac017a6e046d16bd148a225b283532a3592c69e
parentd4577c0c29f8e38a34d1aeac59803b37769af790 (diff)
Prevent random crashes on SGX architecture
Bug #6219894 Change-Id: If77f29da03e557a50e53bae505e1c638a1dbe2cc
-rw-r--r--libs/hwui/FontRenderer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp
index d7937c74f25e..493dc1bd1a17 100644
--- a/libs/hwui/FontRenderer.cpp
+++ b/libs/hwui/FontRenderer.cpp
@@ -518,6 +518,8 @@ FontRenderer::~FontRenderer() {
mCacheLines.clear();
if (mInitialized) {
+ // Unbinding the buffer shouldn't be necessary but it crashes with some drivers
+ Caches::getInstance().unbindIndicesBuffer();
glDeleteBuffers(1, &mIndexBufferID);
delete[] mTextMeshPtr;