Skip to content

Commit ac5563b

Browse files
committed
Merge pull request #167 from goldhoorn/nvidiafix
Make opencl processor compiling on newer linux nvidia CL version
2 parents 517e851 + b1fe3fe commit ac5563b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/protonect/src/opencl_depth_packet_processor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
#ifdef __APPLE__
4343
#include <OpenCL/cl.hpp>
4444
#else
45+
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
46+
#include <CL/cl.h>
47+
#undef CL_VERSION_1_2
4548
#include <CL/cl.hpp>
4649
#endif
4750

0 commit comments

Comments
 (0)