Skip to content

Commit

Permalink
Fixed compilation when OpenCL is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Dade916 committed May 22, 2020
1 parent 9152edd commit 93de161
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/slg/imagemap/imagemap_types.cl
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 93de161

Please sign in to comment.