aboutsummaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-04-11 15:55:37 +0200
committerMichael Bien <[email protected]>2011-04-11 15:55:37 +0200
commita3654a0b8a4e0c9e246aa04019bf1d5a09e7a28d (patch)
treed6416e40b8df2e3f7da7273ef570f20a4a9be95f /src/com
parent8a313c3240994d802af08673d095b0ec8ed69eac (diff)
equals of CLMemory should also check the nio buffer.
Diffstat (limited to 'src/com')
-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;
}