From 524269300eea32bd23356b2e2c67528cbcd2d31a Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Sat, 11 Aug 2018 21:40:23 -0500 Subject: [PATCH] Make more GL imports conditional on have_gl --- pyopencl/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 5b7f3544..f8e248e9 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -103,8 +103,6 @@ from pyopencl._cl import ( # noqa mem_migration_flags, device_partition_property, device_affinity_domain, - gl_object_type, - gl_texture_info, Error, MemoryError, LogicError, RuntimeError, @@ -182,6 +180,9 @@ if get_cl_header_version() >= (2, 0): if _cl.have_gl(): from pyopencl._cl import ( # noqa + gl_object_type, + gl_texture_info, + GLBuffer, GLRenderBuffer, GLTexture, -- GitLab