Skip to content

Commit

Permalink
Remove space character from extension name (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwawiork authored Oct 4, 2021
1 parent 92844be commit 7147d07
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions test_common/gl/setup_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,17 @@ class X11GLEnvironment : public GLEnvironment
}

for (int i=0; i<(int)num_of_devices; i++) {
if (!is_extension_available(devices[i], "cl_khr_gl_sharing ")) {
log_info("Device %d of %d does not support required extension cl_khr_gl_sharing.\n", i+1, num_of_devices);
} else {
log_info("Device %d of %d supports required extension cl_khr_gl_sharing.\n", i+1, num_of_devices);
if (!is_extension_available(devices[i], "cl_khr_gl_sharing"))
{
log_info("Device %d of %d does not support required extension "
"cl_khr_gl_sharing.\n",
i + 1, num_of_devices);
}
else
{
log_info("Device %d of %d supports required extension "
"cl_khr_gl_sharing.\n",
i + 1, num_of_devices);
found_valid_device = 1;
m_devices[m_device_count++] = devices[i];
}
Expand Down

0 comments on commit 7147d07

Please sign in to comment.