aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/jogamp/opencl/CLMemory.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLMemory.java b/src/com/jogamp/opencl/CLMemory.java
index ebeec28e..0e4ea1d6 100644
--- a/src/com/jogamp/opencl/CLMemory.java
+++ b/src/com/jogamp/opencl/CLMemory.java
@@ -257,6 +257,9 @@ public abstract class CLMemory <B extends Buffer> extends CLObject implements CL
if (this.context != other.context && (this.context == null || !this.context.equals(other.context))) {
return false;
}
+ if (this.buffer != other.buffer && (this.buffer == null || !this.buffer.equals(other.buffer))) {
+ return false;
+ }
return true;
}