From a3654a0b8a4e0c9e246aa04019bf1d5a09e7a28d Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 11 Apr 2011 15:55:37 +0200 Subject: equals of CLMemory should also check the nio buffer. --- src/com/jogamp/opencl/CLMemory.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com/jogamp/opencl') 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 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; } -- cgit v1.2.3