diff options
author | Michael Bien <[email protected]> | 2009-10-20 00:53:50 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-10-20 00:53:50 +0200 |
commit | 7f2db980b303fa75f3830679ce65fe4ae41c30dc (patch) | |
tree | a22f4ad2a068ff0816ebc2a4ca71bb2426ee46e4 /src/com/mbien/opencl/CLBuffer.java | |
parent | 224985638b2a1486e4b7da1642a4f2cc22fc8644 (diff) |
added CLCommandQueue to CLContext's resource management code, minor fixes...
Diffstat (limited to 'src/com/mbien/opencl/CLBuffer.java')
-rw-r--r-- | src/com/mbien/opencl/CLBuffer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLBuffer.java b/src/com/mbien/opencl/CLBuffer.java index 74df71e6..f9f3a239 100644 --- a/src/com/mbien/opencl/CLBuffer.java +++ b/src/com/mbien/opencl/CLBuffer.java @@ -33,8 +33,9 @@ public class CLBuffer { } public void release() { - cl.clReleaseMemObject(ID); + int ret = cl.clReleaseMemObject(ID); context.bufferReleased(this); + checkForError(ret, "can not release mem object"); } @Override |