aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-18 06:22:41 +0200
committerSven Gothel <[email protected]>2023-05-18 06:22:41 +0200
commit64b40bd4359cad46ebf62751ea342d80205bd98b (patch)
tree56f9e03925559f5cbe0aed607f5673bdfa1a6eeb /src/java/com
parent7f73d50c90d05cf7388f23977ca956a4933019ad (diff)
Sound3D/Context: Use same base ctor to initialize `hasALC_thread_local_context`, benefitting from thread-local-context
Diffstat (limited to 'src/java/com')
-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);
}
/**