From 52c834983f68974d554f11a144fef6f3a4acac82 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 8 Dec 2019 19:43:17 +0100 Subject: Fix T72282: Cycles OpenCL error after recent math node changes --- intern/cycles/kernel/kernel_compat_opencl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles') diff --git a/intern/cycles/kernel/kernel_compat_opencl.h b/intern/cycles/kernel/kernel_compat_opencl.h index 552734cc361..4963f1cd196 100644 --- a/intern/cycles/kernel/kernel_compat_opencl.h +++ b/intern/cycles/kernel/kernel_compat_opencl.h @@ -126,6 +126,8 @@ #define fminf(x, y) fmin(((float)(x)), ((float)(y))) #define fmodf(x, y) fmod((float)(x), (float)(y)) #define sinhf(x) sinh(((float)(x))) +#define coshf(x) cosh(((float)(x))) +#define tanhf(x) tanh(((float)(x))) /* Use native functions with possibly lower precision for performance, * no issues found so far. */ -- cgit v1.2.3