summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/jogamp/opencl/CLPlatform.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java
index 323022e4..6658f006 100644
--- a/src/com/jogamp/opencl/CLPlatform.java
+++ b/src/com/jogamp/opencl/CLPlatform.java
@@ -268,7 +268,7 @@ public final class CLPlatform {
int ret = cl.clGetDeviceIDs(ID, type.TYPE, 0, null, ib);
// return an empty array rather than throwing an exception
- if(ret == CL.CL_DEVICE_NOT_FOUND) {
+ if(ret == CL.CL_DEVICE_NOT_FOUND || ib.get(0) == 0) {
continue;
}