OSX/clang: Fix T41123, crashing osl when optimization level > O0 is used for osl_shaders.cpp
This commit is contained in:
parent
7ae187c5e4
commit
c0c037f41d
Notes:
blender-bot
2023-12-22 20:14:11 +01:00
Referenced by issue #41123, Add Transparent Shader to Mix Shader with Material Panel open equals crash - OSL segtfault?
|
@ -524,14 +524,14 @@ typedef struct ShaderClosure {
|
|||
ClosureType type;
|
||||
float3 weight;
|
||||
|
||||
float sample_weight;
|
||||
|
||||
float data0;
|
||||
float data1;
|
||||
float data2;
|
||||
|
||||
float3 N;
|
||||
float3 T;
|
||||
|
||||
float sample_weight;
|
||||
|
||||
#ifdef __OSL__
|
||||
void *prim;
|
||||
|
|
Loading…
Reference in New Issue