Fix: Cycles CPU render wrong with latest OSL 1.14

This commit is contained in:
Brecht Van Lommel 2025-01-22 10:49:39 +01:00
parent 446b2a983d
commit e98b45beb1

View file

@ -17,7 +17,11 @@ CCL_NAMESPACE_BEGIN
/* Strings are represented by their hashes on the GPU. */ /* Strings are represented by their hashes on the GPU. */
using DeviceString = size_t; using DeviceString = size_t;
#elif defined(OPENIMAGEIO_USTRING_H) #elif defined(OPENIMAGEIO_USTRING_H)
# if OSL_LIBRARY_VERSION_CODE >= 11400
using DeviceString = ustringhash;
# else
using DeviceString = ustring; using DeviceString = ustring;
# endif
#else #else
using DeviceString = const char *; using DeviceString = const char *;
#endif #endif