Opened 5 years ago

Closed 4 years ago

#13465 closed Bugs (obsolete)

OpenCL compute library - OpenGL/OpenCL check for extension compared to wrong string

Reported by: Håkan Wiman <hw@…> Owned by:
Milestone: To Be Determined Component: None
Version: Boost 1.66.0 Severity: Problem
Keywords: compute opencl Cc:

Description

In compute/context.hpp the

const char *cl_gl_sharing_extension

is set correctly, but is never used. Instead comparison is made to "cl_gl_sharing_extension". The brackets should be removed (in three places). An attempt to diff (hope I got it right):

79c79 < if (!platform.supports_extension("cl_gl_sharing_extension")) ---

if (!platform.supports_extension(cl_gl_sharing_extension))

121c121 < if(!gpu.supports_extension("cl_gl_sharing_extension")){ ---

if(!gpu.supports_extension(cl_gl_sharing_extension)){

132c132 < unsupported_extension_error("cl_gl_sharing_extension") ---

unsupported_extension_error(cl_gl_sharing_extension)

Also: The compute component is not selectable in this bug report

Thanks, Håkan Wiman

Attachments (1)

diff.txt (444 bytes ) - added by Håkan Wiman <hw@…> 5 years ago.
Diff with bug fix (I hope)

Download all attachments as: .zip

Change History (2)

by Håkan Wiman <hw@…>, 5 years ago

Attachment: diff.txt added

Diff with bug fix (I hope)

comment:1 by John Maddock, 4 years ago

Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.