From 349da6e6fbb3b267dda253e731c4ad4c1686fc3d Mon Sep 17 00:00:00 2001 From: Grzegorz Wawiorko Date: Wed, 15 Apr 2020 12:05:59 +0200 Subject: [PATCH] Fix typo device -> devices (#728) --- test_common/gl/setup_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_common/gl/setup_win32.cpp b/test_common/gl/setup_win32.cpp index dc07bd90..b120a36d 100644 --- a/test_common/gl/setup_win32.cpp +++ b/test_common/gl/setup_win32.cpp @@ -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);