Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2012-09-04 12:53:47 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2012-09-04 12:53:47 +0400
commit6805db676d9d004c8131b13fca095b519997b768 (patch)
treeac2a241438d6eca5bb3187dbcd73a0228e1b2948 /intern/cycles/kernel/osl/osl_globals.h
parent71871463a4bb3c58bfa3c3b36019c1b3b02dcf1d (diff)
Use one context per OSL thread. Not sure if this actually works, but the simple renderer example in OSL does it this way.
Diffstat (limited to 'intern/cycles/kernel/osl/osl_globals.h')
-rw-r--r--intern/cycles/kernel/osl/osl_globals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/osl/osl_globals.h b/intern/cycles/kernel/osl/osl_globals.h
index 075c68824e6..17cee675177 100644
--- a/intern/cycles/kernel/osl/osl_globals.h
+++ b/intern/cycles/kernel/osl/osl_globals.h
@@ -64,6 +64,7 @@ struct OSLGlobals {
struct ThreadData {
OSL::ShaderGlobals globals;
OSL::PerThreadInfo *thread_info;
+ OSL::ShadingContext *ctx;
};
static tls_ptr(ThreadData, thread_data);