diff options
author | Sven Gothel <[email protected]> | 2023-07-09 21:04:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-07-09 21:04:16 +0200 |
commit | 2319ef1079dae17d4d23df804632c16bb768a132 (patch) | |
tree | acd235b006692ebb3cead65e9044174f09ea20ab | |
parent | 6f93f6408e336049774d417e59b418d1a9578cdc (diff) |
ALContextKey.equals(): Use cached nativeAddress of other item as well.
-rw-r--r-- | src/java/com/jogamp/openal/ALContextKey.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java/com/jogamp/openal/ALContextKey.java b/src/java/com/jogamp/openal/ALContextKey.java index 9f3d4bf..2e85a05 100644 --- a/src/java/com/jogamp/openal/ALContextKey.java +++ b/src/java/com/jogamp/openal/ALContextKey.java @@ -72,8 +72,7 @@ public class ALContextKey { return false; } final ALContextKey o2 = (ALContextKey)o; - final long o2_ptr = null != o2.alCtx ? o2.alCtx.getDirectBufferAddress() : 0; - return nativeAddress == o2_ptr; + return nativeAddress == o2.nativeAddress; } @Override public int hashCode() { |