mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
Fix: Cycles CPU render wrong with latest OSL 1.14
This commit is contained in:
parent
446b2a983d
commit
e98b45beb1
1 changed files with 4 additions and 0 deletions
|
@ -17,7 +17,11 @@ CCL_NAMESPACE_BEGIN
|
|||
/* Strings are represented by their hashes on the GPU. */
|
||||
using DeviceString = size_t;
|
||||
#elif defined(OPENIMAGEIO_USTRING_H)
|
||||
# if OSL_LIBRARY_VERSION_CODE >= 11400
|
||||
using DeviceString = ustringhash;
|
||||
# else
|
||||
using DeviceString = ustring;
|
||||
# endif
|
||||
#else
|
||||
using DeviceString = const char *;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue