Revision: 45536
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45536&view=rev
Author:   kunigami
Date:     2011-07-19 02:03:22 +0000 (Tue, 19 Jul 2011)

Log Message:
-----------
changed sh_osl to read shaders from ../shaders instead of ./

Modified Paths:
--------------
    brlcad/trunk/src/liboptical/sh_osl.cpp

Modified: brlcad/trunk/src/liboptical/sh_osl.cpp
===================================================================
--- brlcad/trunk/src/liboptical/sh_osl.cpp      2011-07-19 01:44:52 UTC (rev 
45535)
+++ brlcad/trunk/src/liboptical/sh_osl.cpp      2011-07-19 02:03:22 UTC (rev 
45536)
@@ -155,8 +155,9 @@
     /* Split string arount # */
     const char *item;
     item = strtok(shadername, "#");
-    sh_info.shadername = std::string(item);
-    
+    /* We are going to look for shader in ../shaders/ */
+    sh_info.shadername = "../shaders/" + std::string(item);  
+
     /* Check for parameters */
     while((item = strtok(NULL, "#")) != NULL){
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to