Cleanup: refactor passing of OSL kernel globals for upcoming changes

This commit is contained in:
Brecht Van Lommel
2019-05-02 15:39:23 +02:00
parent 45ad6cd5a7
commit 08a44d2981
13 changed files with 106 additions and 95 deletions

View File

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