Fix CUDA build error after last commit, and remove some comments.

This commit is contained in:
2013-01-03 13:18:35 +00:00
parent b3f21a2254
commit e1004eb139
4 changed files with 7 additions and 3 deletions

View File

@@ -28,7 +28,9 @@ __device void svm_node_attr_init(KernelGlobals *kg, ShaderData *sd,
/* find attribute by unique id */
uint id = node.y;
uint attr_offset = sd->object*kernel_data.bvh.attributes_map_stride;
#ifdef __HAIR__
attr_offset = (sd->segment == ~0)? attr_offset: attr_offset + ATTR_PRIM_CURVE;
#endif
uint4 attr_map = kernel_tex_fetch(__attributes_map, attr_offset);
while(attr_map.x != id) {