From 996db8dace63c452e5828586415b0dc57cccb3db Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 6 Oct 2009 17:16:55 -0700 Subject: Fix tls crash on startup if more than one RS contexts are created in one process. --- libs/rs/rsScriptC.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/rs/rsScriptC.cpp') diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 20088da31c22..9da7766217b6 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -62,6 +62,7 @@ bool ScriptC::run(Context *rsc, uint32_t launchIndex) { Context::ScriptTLSStruct * tls = (Context::ScriptTLSStruct *)pthread_getspecific(Context::gThreadTLSKey); + rsAssert(tls); if (mEnviroment.mFragmentStore.get()) { rsc->setFragmentStore(mEnviroment.mFragmentStore.get()); -- cgit v1.2.3-59-g8ed1b