From 6befa4a425759b20e52a57b76f226d36d2750318 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 18 Oct 2023 10:29:35 -0500 Subject: [PATCH] Fix conditions for CL_UNORM_INT24 availability Closes gh-705 --- src/wrap_constants.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrap_constants.cpp b/src/wrap_constants.cpp index 2c06f2f5e..d7a27b467 100644 --- a/src/wrap_constants.cpp +++ b/src/wrap_constants.cpp @@ -750,7 +750,7 @@ void pyopencl_expose_constants(py::module_ &m) ADD_ATTR( , UNSIGNED_INT32); ADD_ATTR( , HALF_FLOAT); ADD_ATTR( , FLOAT); -#if PYOPENCL_CL_VERSION >= 0x1020 +#if PYOPENCL_CL_VERSION >= 0x1020 && defined(cl_khr_gl_sharing) ADD_ATTR( , UNORM_INT24); #endif #if PYOPENCL_CL_VERSION >= 0x2010