mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-26 07:04:49 +01:00
don't allow second creation
This commit is contained in:
parent
7a763bff29
commit
4a89d67485
|
|
@ -77,6 +77,12 @@ public abstract class AL extends CoreAL {
|
|||
*/
|
||||
public static void create(String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized)
|
||||
throws OpenALException {
|
||||
|
||||
if (created) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
AL.deviceArguments = deviceArguments;
|
||||
AL.contextFrequency = contextFrequency;
|
||||
AL.contextRefresh = contextRefresh;
|
||||
|
|
@ -90,6 +96,10 @@ public abstract class AL extends CoreAL {
|
|||
* open the default device, and create a context using default values.
|
||||
*/
|
||||
public static void create() throws OpenALException {
|
||||
if(created) {
|
||||
return;
|
||||
}
|
||||
|
||||
BaseAL.create();
|
||||
|
||||
ALC.create();
|
||||
|
|
|
|||
Loading…
Reference in a new issue