Cycles: Updates for new OSL 1.5 API.

Differential Revision: https://developer.blender.org/D662

Patch by Sergey and myself.
This commit is contained in:
Thomas Dinges
2014-07-24 23:07:49 +02:00
parent 35f07cfc1b
commit 6582215f87
3 changed files with 90 additions and 27 deletions

View File

@@ -248,7 +248,11 @@ void OSLShaderManager::shading_system_free()
bool OSLShaderManager::osl_compile(const string& inputfile, const string& outputfile)
{
#if OSL_LIBRARY_VERSION_CODE >= 10500
vector<string_view> options;
#else
vector<string> options;
#endif
string stdosl_path;
/* specify output file name */