From 1246ef714e13d7e72d42aed46c260f698160dfd8 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 30 Nov 2012 06:10:25 +0000 Subject: [PATCH] Fix #33351: cycles OSL not loading grayscale images as RGB correctly. --- intern/cycles/render/osl.cpp | 1 + 1 file changed, 1 insertion(+) 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);