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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-30 10:10:25 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-30 10:10:25 +0400
commit1246ef714e13d7e72d42aed46c260f698160dfd8 (patch)
tree6af57d58034e22583f058ae6829cf3c9b84e81d0 /intern/cycles/render
parente7f594b0df56c99b19ce2eda50d7ca8872ac21e6 (diff)
Fix #33351: cycles OSL not loading grayscale images as RGB correctly.
Diffstat (limited to 'intern/cycles/render')
-rw-r--r--intern/cycles/render/osl.cpp1
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);