summaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-07-09 21:04:16 +0200
committerSven Gothel <[email protected]>2023-07-09 21:04:16 +0200
commit2319ef1079dae17d4d23df804632c16bb768a132 (patch)
treeacd235b006692ebb3cead65e9044174f09ea20ab /src/java
parent6f93f6408e336049774d417e59b418d1a9578cdc (diff)
ALContextKey.equals(): Use cached nativeAddress of other item as well.
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/jogamp/openal/ALContextKey.java3
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() {