Cycles: tentative fix get rid of os-specific issue in struct ShaderClosure ( aligment issues due order )
This commit is contained in:
@@ -531,16 +531,18 @@ typedef enum AttributeStandard {
|
|||||||
typedef struct ShaderClosure {
|
typedef struct ShaderClosure {
|
||||||
ClosureType type;
|
ClosureType type;
|
||||||
float3 weight;
|
float3 weight;
|
||||||
|
#ifndef __APPLE__
|
||||||
|
float sample_weight;
|
||||||
|
#endif
|
||||||
float data0;
|
float data0;
|
||||||
float data1;
|
float data1;
|
||||||
float data2;
|
float data2;
|
||||||
|
|
||||||
float3 N;
|
float3 N;
|
||||||
float3 T;
|
float3 T;
|
||||||
|
#ifdef __APPLE__
|
||||||
float sample_weight;
|
float sample_weight;
|
||||||
|
#endif
|
||||||
#ifdef __OSL__
|
#ifdef __OSL__
|
||||||
void *prim;
|
void *prim;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user