Cycles: Fix some typos in the selective modes compilation

This commit is contained in:
Sergey Sharybin
2015-06-01 18:55:29 +05:00
parent 399a27b261
commit c0235da53c
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ CCL_NAMESPACE_END
CCL_NAMESPACE_BEGIN
#define NODES_GROUP(group) ((group) <= __NODES_MAX_GROUP__)
#define NODES_FEATURE(feature) (__NODES_FEATURES__ & (feature) != 0)
#define NODES_FEATURE(feature) ((__NODES_FEATURES__ & (feature)) != 0)
/* Main Interpreter Loop */
ccl_device_noinline void svm_eval_nodes(KernelGlobals *kg, ShaderData *sd, ShaderType type, int path_flag)

View File

@@ -487,7 +487,7 @@ void ShaderManager::get_requested_graph_features(ShaderGraph *graph,
int& features)
{
foreach(ShaderNode *node, graph->nodes) {
max_group = min(max_group, node->get_group());
max_group = max(max_group, node->get_group());
features |= node->get_feature();
if(node->special_type == SHADER_SPECIAL_TYPE_CLOSURE) {
BsdfNode *bsdf_node = static_cast<BsdfNode*>(node);