Fix for Cycles OSL: The RenderServices pointer in ShadingSystem is no longer accessib...
authorLukas Toenne <lukas.toenne@googlemail.com>
Mon, 3 Sep 2012 18:51:02 +0000 (18:51 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Mon, 3 Sep 2012 18:51:02 +0000 (18:51 +0000)
commitf8c29c999f0f0a6ed7e8a8ba1de444fdc5bdd3f2
treecb3f23b3d33b7a991f17020dde7c1d4eb26c2e58
parent9b30e8d83ac1294bb7a0956d57f5d00d61df703f
Fix for Cycles OSL: The RenderServices pointer in ShadingSystem is no longer accessible from the interface class (presumably because it is just the base class pointer anyway and would have to be casted). The OSLRenderServices pointer to our own implementation is now stored alongside the ShadingSystem in the kernel globals, so it can be accessed in thread_init.
intern/cycles/kernel/osl/osl_globals.h
intern/cycles/kernel/osl/osl_shader.cpp
intern/cycles/render/osl.cpp