Fix build error when building without OSL support.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 9 Dec 2013 04:28:01 +0000 (05:28 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 9 Dec 2013 04:28:19 +0000 (05:28 +0100)
intern/cycles/render/osl.h

index fe73f91..5824e2a 100644 (file)
@@ -142,6 +142,7 @@ public:
        ImageManager *image_manager;
 
 private:
+#ifdef WITH_OSL
        string id(ShaderNode *node);
        OSL::ShadingAttribStateRef compile_type(Shader *shader, ShaderGraph *graph, ShaderType type);
        bool node_skip_input(ShaderNode *node, ShaderInput *input);
@@ -150,6 +151,7 @@ private:
 
        void find_dependencies(set<ShaderNode*>& dependencies, ShaderInput *input);
        void generate_nodes(const set<ShaderNode*>& nodes);
+#endif
 
        void *shadingsys;
        void *manager;