Cycles: Fix compilation error with latest OSL
They went back from string_view to string for compiler options. Still having linking errors here, but maybe others will be more lucky to fully compiler blender with new OSL.
This commit is contained in:
@@ -251,7 +251,11 @@ void OSLShaderManager::shading_system_free()
|
||||
|
||||
bool OSLShaderManager::osl_compile(const string& inputfile, const string& outputfile)
|
||||
{
|
||||
#if OSL_LIBRARY_VERSION_CODE < 10602
|
||||
vector<string_view> options;
|
||||
#else
|
||||
vector<string> options;
|
||||
#endif
|
||||
string stdosl_path;
|
||||
string shader_path = path_get("shader");
|
||||
|
||||
|
Reference in New Issue
Block a user