diff options
| author | 2011-01-05 03:37:48 -0800 | |
|---|---|---|
| committer | 2011-01-05 03:37:48 -0800 | |
| commit | 49945c0ff653d210951fdff51f23835314b64aeb (patch) | |
| tree | 4b537b89d7cb9c0b2b2476504ec54dbefc4b9a15 /libs/rs/rsContext.cpp | |
| parent | e4c453dd1e48ce1f986bc3e0e0df6f15cbeef55a (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.cpp | 1 |
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"); |