Cycles / Non-Progressive integrator:

* Code cleanup, to avoid separate code for CPU and GPU.
This commit is contained in:
Thomas Dinges
2013-07-31 18:46:11 +00:00
parent 6a902d1a81
commit 380ee3d30a

View File

@@ -956,13 +956,9 @@ __device void shader_merge_closures(KernelGlobals *kg, ShaderData *sd)
int size = sd->num_closure - (j+1);
if(size > 0) {
#ifdef __KERNEL_GPU__
for(int k = 0; k < size; k++) {
scj[k] = scj[k+1];
}
#else
memmove(scj, scj+1, size*sizeof(ShaderClosure));
#endif
}
sd->num_closure--;