commit | 996db8dace63c452e5828586415b0dc57cccb3db | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Tue Oct 06 17:16:55 2009 -0700 |
committer | Jason Sams <rjsams@android.com> | Tue Oct 06 17:16:55 2009 -0700 |
tree | 830c10b819407f8539298b40da17ca0557443811 | |
parent | 516c31911578db8ce53529483c3ded918ac7dc6b [diff] [blame] |
Fix tls crash on startup if more than one RS contexts are created in one process.
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 20088da..9da7766 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp
@@ -62,6 +62,7 @@ { Context::ScriptTLSStruct * tls = (Context::ScriptTLSStruct *)pthread_getspecific(Context::gThreadTLSKey); + rsAssert(tls); if (mEnviroment.mFragmentStore.get()) { rsc->setFragmentStore(mEnviroment.mFragmentStore.get());