OSX/clang: Fix T41123, crashing osl when optimization level > O0 is used for osl_shaders.cpp
This commit is contained in:
@@ -524,8 +524,6 @@ typedef struct ShaderClosure {
|
|||||||
ClosureType type;
|
ClosureType type;
|
||||||
float3 weight;
|
float3 weight;
|
||||||
|
|
||||||
float sample_weight;
|
|
||||||
|
|
||||||
float data0;
|
float data0;
|
||||||
float data1;
|
float data1;
|
||||||
float data2;
|
float data2;
|
||||||
@@ -533,6 +531,8 @@ typedef struct ShaderClosure {
|
|||||||
float3 N;
|
float3 N;
|
||||||
float3 T;
|
float3 T;
|
||||||
|
|
||||||
|
float sample_weight;
|
||||||
|
|
||||||
#ifdef __OSL__
|
#ifdef __OSL__
|
||||||
void *prim;
|
void *prim;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user