summaryrefslogtreecommitdiff
path: root/libs/rs/rsContext.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2011-01-05 03:37:48 -0800
committer Jason Sams <rjsams@android.com> 2011-01-05 03:37:48 -0800
commit49945c0ff653d210951fdff51f23835314b64aeb (patch)
tree4b537b89d7cb9c0b2b2476504ec54dbefc4b9a15 /libs/rs/rsContext.cpp
parente4c453dd1e48ce1f986bc3e0e0df6f15cbeef55a (diff)
fix bug 3313505
Shader cache cleanup could occur in wrong thread during RS teardown. Change-Id: Iffed41de046147db30885e6815826e3b640020c1
Diffstat (limited to 'libs/rs/rsContext.cpp')
-rw-r--r--libs/rs/rsContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 22c73fec491c..c437d72fb070 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -535,6 +535,7 @@ void Context::destroyWorkerThreadResources() {
mStateFragment.deinit(this);
mStateFragmentStore.deinit(this);
mStateFont.deinit(this);
+ mShaderCache.cleanupAll();
}
ObjectBase::zeroAllUserRef(this);
LOGV("destroyWorkerThreadResources 2");