forked from bartvdbraak/blender
Fix build with OSL 1.9.x, automatically aligns to 16 bytes now.
This commit is contained in:
parent
51e2844387
commit
d089875c4c
@ -232,7 +232,11 @@ static void register_closure(OSL::ShadingSystem *ss, const char *name, int id, O
|
|||||||
/* optimization: it's possible to not use a prepare function at all and
|
/* optimization: it's possible to not use a prepare function at all and
|
||||||
* only initialize the actual class when accessing the closure component
|
* only initialize the actual class when accessing the closure component
|
||||||
* data, but then we need to map the id to the class somehow */
|
* data, but then we need to map the id to the class somehow */
|
||||||
|
#if OSL_LIBRARY_VERSION_CODE >= 10900
|
||||||
|
ss->register_closure(name, id, params, prepare, NULL);
|
||||||
|
#else
|
||||||
ss->register_closure(name, id, params, prepare, NULL, 16);
|
ss->register_closure(name, id, params, prepare, NULL, 16);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void OSLShader::register_closures(OSLShadingSystem *ss_)
|
void OSLShader::register_closures(OSLShadingSystem *ss_)
|
||||||
|
Loading…
Reference in New Issue
Block a user