[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52675] trunk/blender/intern/cycles/render /osl.cpp: Fix #33351: cycles OSL not loading grayscale images as RGB correctly.

Brecht Van Lommel brechtvanlommel at pandora.be
Fri Nov 30 07:10:26 CET 2012


Revision: 52675
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52675
Author:   blendix
Date:     2012-11-30 06:10:25 +0000 (Fri, 30 Nov 2012)
Log Message:
-----------
Fix #33351: cycles OSL not loading grayscale images as RGB correctly.

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/osl.cpp

Modified: trunk/blender/intern/cycles/render/osl.cpp
===================================================================
--- trunk/blender/intern/cycles/render/osl.cpp	2012-11-30 06:10:16 UTC (rev 52674)
+++ trunk/blender/intern/cycles/render/osl.cpp	2012-11-30 06:10:25 UTC (rev 52675)
@@ -138,6 +138,7 @@
 	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);




More information about the Bf-blender-cvs mailing list