From abdb91b8491f99a8d5a0e827b4b0b001c2c13dab Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Tue, 12 Feb 2013 00:08:01 -0600 Subject: [PATCH] Fix get_gl_sharing_context_properties for Py3 compatbility. (Patch by Marko Bencun) --- pyopencl/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/tools.py b/pyopencl/tools.py index c5d5dd5d..30d61b77 100644 --- a/pyopencl/tools.py +++ b/pyopencl/tools.py @@ -324,7 +324,7 @@ def get_gl_sharing_context_properties(): props = [] import sys - if sys.platform == "linux2": + if sys.platform in ["linux", "linux2"]: props.append( (ctx_props.GL_CONTEXT_KHR, gl_platform.GetCurrentContext())) props.append( -- GitLab