Skip to content
Snippets Groups Projects
Commit 0b1c7d45 authored by Jean-Matthieu Etancelin's avatar Jean-Matthieu Etancelin
Browse files

Fix OpenGL context properties for non-OSX platforms

parent 8a934180
No related branches found
No related tags found
No related merge requests found
...@@ -149,10 +149,8 @@ def get_opengl_shared_environment(platform_id, device_id, device_type, ...@@ -149,10 +149,8 @@ def get_opengl_shared_environment(platform_id, device_id, device_type,
else: else:
# Some OSs prefer clCreateContextFromType, some prefer # Some OSs prefer clCreateContextFromType, some prefer
# clCreateContext. Try both. # clCreateContext. Try both.
try: properties = [(cl.context_properties.PLATFORM, __platform)] \
properties = [(cl.context_properties.PLATFORM, __platform)] + get_gl_sharing_context_properties()
except:
properties = [(cl.context_properties.PLATFORM, __platform)]
__ctx = _get_context(__device, properties) __ctx = _get_context(__device, properties)
#Create CommandQueue on the GPU Context #Create CommandQueue on the GPU Context
# OpenCL command queue # OpenCL command queue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment