aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/openal/ALContextKey.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/openal/ALContextKey.java')
-rw-r--r--src/java/com/jogamp/openal/ALContextKey.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/java/com/jogamp/openal/ALContextKey.java b/src/java/com/jogamp/openal/ALContextKey.java
index 2e85a05..450c42b 100644
--- a/src/java/com/jogamp/openal/ALContextKey.java
+++ b/src/java/com/jogamp/openal/ALContextKey.java
@@ -43,15 +43,12 @@ public class ALContextKey {
private final int hashCodeValue;
/** Creates an instance using the current context as key. */
- public ALContextKey( final Object userParam ) {
- if( null == userParam ) {
- throw new IllegalArgumentException("userParam null");
- }
- if( !(userParam instanceof ALCcontext) ) {
- throw new IllegalArgumentException("userParam not ALCcontext but "+userParam.getClass());
+ public ALContextKey( final ALCcontext context ) {
+ if( null == context ) {
+ throw new IllegalArgumentException("null context");
}
// alCtx = alc.alcGetCurrentContext();
- alCtx = (ALCcontext) userParam;
+ alCtx = context;
if( null != alCtx ) {
nativeAddress = alCtx.getDirectBufferAddress();
hashCodeValue = HashUtil.getAddrHash32_EqualDist(nativeAddress);