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:
authorSergey Sharybin <sergey@blender.org>2021-10-19 12:09:11 +0300
committerSergey Sharybin <sergey@blender.org>2021-10-19 12:29:39 +0300
commit6e859f7ff8906766ab19d46d06e2c131301d266d (patch)
tree454b8b764221455f5e623b699606de868bc4995a /intern/cycles/render/osl.h
parent9c8255d486c1271f20d33debf2a9e9ce883b5019 (diff)
Fix invalid OSL shader compilation state
The lookup tables are to be initialized after device free. On Linux was only noticeable when rendering default cube scene with an extra assert. On Windows it was causing an assert in STL in debug builds. Differential Revision: https://developer.blender.org/D12918
Diffstat (limited to 'intern/cycles/render/osl.h')
-rw-r--r--intern/cycles/render/osl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/osl.h b/intern/cycles/render/osl.h
index 019dca16df7..7b7b8cc8dc5 100644
--- a/intern/cycles/render/osl.h
+++ b/intern/cycles/render/osl.h
@@ -140,7 +140,7 @@ class OSLCompiler {
OSL::ShadingSystem *shadingsys,
Scene *scene);
#endif
- void compile(OSLGlobals *og, Shader *shader);
+ void compile(Shader *shader);
void add(ShaderNode *node, const char *name, bool isfilepath = false);