diff options
-rw-r--r-- | src/com/jogamp/opencl/CLEvent.java | 2 | ||||
-rw-r--r-- | src/com/jogamp/opencl/CLObjectResource.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLEvent.java b/src/com/jogamp/opencl/CLEvent.java index 78f7d3dc..b0b2193c 100644 --- a/src/com/jogamp/opencl/CLEvent.java +++ b/src/com/jogamp/opencl/CLEvent.java @@ -51,7 +51,7 @@ public class CLEvent extends CLObjectResource { private final CLEventProfilingInfoAccessor eventProfilingInfo; private final CLEventBinding binding; - CLEvent(CLContext context, long id) { + public CLEvent(CLContext context, long id) { super(context, id); binding = context.getPlatform().getEventBinding(); this.eventInfo = new CLEventInfoAccessor(); diff --git a/src/com/jogamp/opencl/CLObjectResource.java b/src/com/jogamp/opencl/CLObjectResource.java index fcea22c1..3a8fe500 100644 --- a/src/com/jogamp/opencl/CLObjectResource.java +++ b/src/com/jogamp/opencl/CLObjectResource.java @@ -21,6 +21,7 @@ abstract class CLObjectResource extends CLObject implements CLResource, AutoClos super(context, ID); } + @Override public void release() { if(released) { throw new RuntimeException(getClass().getSimpleName()+" was already released."); @@ -43,6 +44,7 @@ abstract class CLObjectResource extends CLObject implements CLResource, AutoClos } } + @Override public boolean isReleased() { return released; } |