Cycles: Limit degenerated triangle check got CUDA only
OpenCL seems to work fine here, and for some reason that comparison was giving compilation error on OpenCL here. Better to compile OpenCL kernel than to be fully robust to weird corner cases.
This commit is contained in:
parent
b6954c8da1
commit
b595a692c8
@ -159,7 +159,7 @@ ccl_device_inline bool triangle_intersect(KernelGlobals *kg,
|
||||
if(kernel_tex_fetch(__prim_visibility, triAddr) & visibility)
|
||||
#endif
|
||||
{
|
||||
#ifdef __KERNEL_GPU__
|
||||
#ifdef __KERNEL_CUDA__
|
||||
if(A == B && B == C) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user