aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/jogamp/openal/sound3d/Context.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java/com/jogamp/openal/sound3d/Context.java b/src/java/com/jogamp/openal/sound3d/Context.java
index 6cd19d6..28e033e 100644
--- a/src/java/com/jogamp/openal/sound3d/Context.java
+++ b/src/java/com/jogamp/openal/sound3d/Context.java
@@ -75,8 +75,7 @@ public class Context {
* @param device The device the Context is being created for.
*/
public Context(final Device device) {
- this.device = device;
- this.alCtx = AudioSystem3D.alc.alcCreateContext(device.getALDevice(), null);
+ this(AudioSystem3D.alc.alcCreateContext(device.getALDevice(), null), device);
}
/**