diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-30 10:10:25 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-30 10:10:25 +0400 |
commit | 1246ef714e13d7e72d42aed46c260f698160dfd8 (patch) | |
tree | 6af57d58034e22583f058ae6829cf3c9b84e81d0 /intern | |
parent | e7f594b0df56c99b19ce2eda50d7ca8872ac21e6 (diff) |
Fix #33351: cycles OSL not loading grayscale images as RGB correctly.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/osl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/osl.cpp b/intern/cycles/render/osl.cpp index c1d2eade5e5..2ec7e3d3775 100644 --- a/intern/cycles/render/osl.cpp +++ b/intern/cycles/render/osl.cpp @@ -138,6 +138,7 @@ void OSLShaderManager::texture_system_init() ts = TextureSystem::create(true); ts->attribute("automip", 1); ts->attribute("autotile", 64); + ts->attribute("gray_to_rgb", 1); /* effectively unlimited for now, until we support proper mipmap lookups */ ts->attribute("max_memory_MB", 16384); |