Cycles: Fix building of OpenCL kernels after volume optimization commit

OpenCL is C based, so no support for operators.

Related commit: 7377d411b4
This commit is contained in:
Mai Lavelle
2018-03-02 04:52:32 -05:00
parent a9509a2f8a
commit f2a2d5492b

View File

@@ -76,8 +76,6 @@ ccl_device_inline int3 clamp(const int3& a, int3& mn, int mx)
clamp(a.z, mn.z, mx));
#endif
}
#endif /* !__KERNEL_OPENCL__ */
ccl_device_inline bool operator==(const int3 &a, const int3 &b)
{
@@ -93,6 +91,7 @@ ccl_device_inline bool operator<(const int3 &a, const int3 &b)
{
return a.x < b.x && a.y < b.y && a.z < b.z;
}
#endif /* !__KERNEL_OPENCL__ */
CCL_NAMESPACE_END