OpenAL bindings don't accept null arguments
makamys opened this issue ยท 0 comments
In LWJGL2, the bindings convert null arguments into 0's. LWJGL3ify instead tries to unconditionally access their fields, causing an exception.
This happens with ArchaicFix on startup for example. (Fortunately it doesn't cause a crash.)
[Default Sound Device Checker/ERROR] [ArchaicFix]: An exception occured while checking sound device status
java.lang.NullPointerException: Cannot read field "device" because "device" is null
at org.lwjglx.openal.ALC10.alcGetString(ALC10.java:91) ~[lwjgl3ify-1.5.7.jar:?]
at org.embeddedt.archaicfix.helpers.SoundDeviceThread.getDefault(SoundDeviceThread.java:23) ~[SoundDeviceThread.class:?]
at org.embeddedt.archaicfix.helpers.SoundDeviceThread.run(SoundDeviceThread.java:43) [SoundDeviceThread.class:?]