From 93de16134bc24d1ceb80966b02d409d1c0d48120 Mon Sep 17 00:00:00 2001 From: David Bucciarelli Date: Fri, 22 May 2020 15:07:43 +0200 Subject: [PATCH] Fixed compilation when OpenCL is disabled --- include/slg/imagemap/imagemap_types.cl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/slg/imagemap/imagemap_types.cl b/include/slg/imagemap/imagemap_types.cl index e25a42c9d..be802c366 100644 --- a/include/slg/imagemap/imagemap_types.cl +++ b/include/slg/imagemap/imagemap_types.cl @@ -38,7 +38,13 @@ typedef struct { #if defined(SLG_OPENCL_KERNEL) unsigned long pixelsIndex; #else - cl_ulong pixelsIndex; +#if defined(LUXRAYS_ENABLE_OPENCL) + cl_ulong pixelsIndex; +#else + // In this, case cl_ulong is not defined. The type, in this case, doesn't + // really matter because this structure is not used at all. + unsigned long long pixelsIndex; +#endif #endif } ImageMap;