diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-14 15:50:03 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-17 22:39:16 +0300 |
commit | 0e8cd14dfee9788f24854aa8f4148033ef042f51 (patch) | |
tree | 4fd7fdb358f9ef4ccdcb934025b74ee6f25598ad /intern/cycles/render/osl.cpp | |
parent | 08670d3b8117cda608c178688f261e1204794a0d (diff) |
Code refactor: use shader pointers rather than shader indexes.
Diffstat (limited to 'intern/cycles/render/osl.cpp')
-rw-r--r-- | intern/cycles/render/osl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/osl.cpp b/intern/cycles/render/osl.cpp index 88a69e251db..5118d4b17da 100644 --- a/intern/cycles/render/osl.cpp +++ b/intern/cycles/render/osl.cpp @@ -99,7 +99,7 @@ void OSLShaderManager::device_update(Device *device, DeviceScene *dscene, Scene thread_scoped_lock lock(ss_mutex); OSLCompiler compiler((void*)this, (void*)ss, scene->image_manager); - compiler.background = (shader == scene->shaders[scene->default_background]); + compiler.background = (shader == scene->default_background); compiler.compile(scene, og, shader); if(shader->use_mis && shader->has_surface_emission) |