Fix T64515, T60434: crash in OSL and preview render after recent changes

The refactoring of texture handles did not take into account that render
services are shared between multiple render session. Now the texture
to handle map is also shared between render sessions.
This commit is contained in:
Brecht Van Lommel
2019-05-14 12:13:43 +02:00
parent 9fecac32d9
commit b50cf33d91
14 changed files with 194 additions and 222 deletions

View File

@@ -54,7 +54,7 @@ using namespace OSL;
///
class GenericEmissiveClosure : public CClosurePrimitive {
public:
void setup(const KernelGlobals *, ShaderData *sd, int /* path_flag */, float3 weight)
void setup(ShaderData *sd, int /* path_flag */, float3 weight)
{
emission_setup(sd, weight);
}