Fix typo device -> devices (#728)

This commit is contained in:
Grzegorz Wawiorko
2020-04-15 12:05:59 +02:00
committed by GitHub
parent fea3e54e5a
commit 349da6e6fb

View File

@@ -176,7 +176,7 @@ public:
// Check all devices, search for one that supports cl_khr_gl_sharing
for (int i=0; i<(int)num_of_devices; i++) {
if (!is_extension_available(device[i], "cl_khr_gl_sharing")) {
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);