aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-05-02 14:20:37 +0200
committerMichael Bien <[email protected]>2010-05-02 14:20:37 +0200
commit0f0b0e643c2bcef81c954a8be2b12fc2e63efb59 (patch)
tree4a291809fadf8864128e1fa1d83e5d3d284b928f /src/com/jogamp
parent37401c35717505b79ab203881b86534bb7098ee8 (diff)
parent37cd0776c665005554b81b5a0e460a68ba5d6720 (diff)
Merge branch 'master' of github.com:mbien/jocl-demos
Diffstat (limited to 'src/com/jogamp')
-rw-r--r--src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java b/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
index 24af1fe..3abe1de 100644
--- a/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
+++ b/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
@@ -124,6 +124,9 @@ public class GLCLInteroperabilityDemo implements GLEventListener {
break;
}
}
+ if(null==device) {
+ throw new RuntimeException("couldn't find any CL/GL memory sharing devices ..");
+ }
// create OpenCL context before creating any OpenGL objects
// you want to share with OpenCL (AMD driver requirement)
clContext = CLGLContext.create(drawable.getContext(), device);
@@ -274,4 +277,4 @@ public class GLCLInteroperabilityDemo implements GLEventListener {
new GLCLInteroperabilityDemo();
}
-} \ No newline at end of file
+}