Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-07-25 01:07:49 +0400
committerThomas Dinges <blender@dingto.org>2014-07-25 01:07:49 +0400
commit6582215f87015f3909f318a5b8c3b5d48c968424 (patch)
treee5be35881a21e238614bf2f3f8a19d7facbbfcd4 /intern/cycles/render/osl.cpp
parent35f07cfc1bf29c88936347e1ba0211d0f1ee35c3 (diff)
Cycles: Updates for new OSL 1.5 API.
Differential Revision: https://developer.blender.org/D662 Patch by Sergey and myself.
Diffstat (limited to 'intern/cycles/render/osl.cpp')
-rw-r--r--intern/cycles/render/osl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/osl.cpp b/intern/cycles/render/osl.cpp
index 94866102f60..fa7a242e77b 100644
--- a/intern/cycles/render/osl.cpp
+++ b/intern/cycles/render/osl.cpp
@@ -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 */