diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py
index 5b7f35449b156c124283f900a2e740817bc42adf..f8e248e939dfd966cc81a06d7b5b1a7a4f941c4f 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,