diff options
author | Michael Bien <[email protected]> | 2011-04-11 15:55:37 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-04-11 15:55:37 +0200 |
commit | a3654a0b8a4e0c9e246aa04019bf1d5a09e7a28d (patch) | |
tree | d6416e40b8df2e3f7da7273ef570f20a4a9be95f /src/com/jogamp | |
parent | 8a313c3240994d802af08673d095b0ec8ed69eac (diff) |
equals of CLMemory should also check the nio buffer.
Diffstat (limited to 'src/com/jogamp')
-rw-r--r-- | src/com/jogamp/opencl/CLMemory.java | 3 |
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; } |