summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/CLContext.java')
-rw-r--r--src/com/mbien/opencl/CLContext.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLContext.java b/src/com/mbien/opencl/CLContext.java
index 6b09cc37..2698a934 100644
--- a/src/com/mbien/opencl/CLContext.java
+++ b/src/com/mbien/opencl/CLContext.java
@@ -382,6 +382,10 @@ public class CLContext extends CLObject implements CLResource {
release();
}
+ protected void overrideContext(CLDevice device) {
+ device.setContext(this);
+ }
+
/**
* Returns the CLPlatform this context is running on.
*/