mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
don't allow second creation
This commit is contained in:
parent
7a763bff29
commit
4a89d67485
1 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue