Cycles: tentative fix get rid of os-specific issue in struct ShaderClosure ( aligment issues due order )

This commit is contained in:
jens verwiebe 2014-09-15 21:20:24 +02:00
parent 03ce9882af
commit 0c3ff81e79
1 changed files with 5 additions and 3 deletions

View File

@ -531,16 +531,18 @@ typedef enum AttributeStandard {
typedef struct ShaderClosure {
ClosureType type;
float3 weight;
#ifndef __APPLE__
float sample_weight;
#endif
float data0;
float data1;
float data2;
float3 N;
float3 T;
#ifdef __APPLE__
float sample_weight;
#endif
#ifdef __OSL__
void *prim;
#endif