diff options
author | Michael Bien <[email protected]> | 2011-06-19 22:31:05 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-06-19 22:31:05 +0200 |
commit | 826dacffbae941a35a7cc74515751ddb1d5711a2 (patch) | |
tree | 5cf5d5f67ceda1cbf136a6f30295f4ffa8c6c640 /src/com/jogamp/opencl/CLSampler.java | |
parent | 00096ac5b2c824fc7e8d7203229c8f246caf833c (diff) |
- added isReleased() to CLResource, made CLObject public.
- a CLResource will throw an Exception if released twice.
Diffstat (limited to 'src/com/jogamp/opencl/CLSampler.java')
-rw-r--r-- | src/com/jogamp/opencl/CLSampler.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLSampler.java b/src/com/jogamp/opencl/CLSampler.java index 141deb5a..3f145b3b 100644 --- a/src/com/jogamp/opencl/CLSampler.java +++ b/src/com/jogamp/opencl/CLSampler.java @@ -43,7 +43,7 @@ import static com.jogamp.opencl.util.CLUtil.*; * @see CLContext#createSampler(com.jogamp.opencl.CLSampler.AddressingMode, com.jogamp.opencl.CLSampler.FilteringMode, boolean) * @author Michael Bien */ -public class CLSampler extends CLObject implements CLResource { +public class CLSampler extends CLObjectResource { private final CLSamplerInfoAccessor samplerInfo; private final CLSamplerBinding binding; @@ -80,6 +80,7 @@ public class CLSampler extends CLObject implements CLResource { @Override public void release() { + super.release(); int ret = binding.clReleaseSampler(ID); context.onSamplerReleased(this); if(ret != CL_SUCCESS) { |