Fix #34601: cycles OSL crash when using preview render and viewport render at
[blender.git] / intern / cycles / render / osl.h
index 2d3996df0eb087403ae37bf1f208d1d76285cb94..c459f6bfa08cbada4a3f2452b00e46a6d9385215 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "util_set.h"
 #include "util_string.h"
+#include "util_thread.h"
 
 #include "shader.h"
 
@@ -92,6 +93,10 @@ protected:
        OSLRenderServices *services;
        OSL::ErrorHandler errhandler;
        map<string, OSLShaderInfo> loaded_shaders;
+
+       static OSL::TextureSystem *ts_shared;
+       static thread_mutex ts_shared_mutex;
+       static int ts_shared_users;
 };
 
 #endif