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:
Sergey Sharybin
2015-01-17 00:13:30 +05:00
parent 09ac6cae09
commit 89e562e19b

View File

@@ -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");