aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-17 08:08:04 +0200
committerSven Gothel <[email protected]>2023-05-17 08:08:04 +0200
commit00fded51c28a97a463598ca1dc49f042a05bd3f9 (patch)
treeb2679de22f5c562793787d3357befb5c3c01bd0d
parent03f4bb63ce8a358b1c2ef303480e1887d72ecb2e (diff)
JoalVersion: Accept null ALC instance
-rw-r--r--src/java/com/jogamp/openal/JoalVersion.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/com/jogamp/openal/JoalVersion.java b/src/java/com/jogamp/openal/JoalVersion.java
index 2892082..7bc0978 100644
--- a/src/java/com/jogamp/openal/JoalVersion.java
+++ b/src/java/com/jogamp/openal/JoalVersion.java
@@ -106,6 +106,10 @@ public class JoalVersion extends JogampVersion {
if( null == sb ) {
sb = new StringBuilder();
}
+ if( null == alc ) {
+ sb.append("ALC null");
+ return sb;
+ }
final ALCdevice device = alc.alcOpenDevice(null);
final ALCcontext context = alc.alcCreateContext(device, null);
alc.alcMakeContextCurrent(context);