Fix #36609: glsl materials with reroute nodes not working correct.

This commit is contained in:
Brecht Van Lommel 2013-08-30 17:18:15 +00:00
parent 0933c6093e
commit b1c36529aa

@ -189,13 +189,16 @@ void register_node_tree_type_sh(void)
void ntreeGPUMaterialNodes(bNodeTree *ntree, GPUMaterial *mat)
{
/* localize tree to create links for reroute and mute */
bNodeTree *localtree = ntreeLocalize(ntree);
bNodeTreeExec *exec;
exec = ntreeShaderBeginExecTree(ntree);
exec = ntreeShaderBeginExecTree(localtree);
ntreeExecGPUNodes(exec, mat, 1);
ntreeShaderEndExecTree(exec);
ntreeFreeTree_ex(localtree, false);
MEM_freeN(localtree);
}
/* **************** call to switch lamploop for material node ************ */