parent
803c5391a5
commit
6fa36c3432
|
@ -55,7 +55,7 @@ public abstract class BasicTest {
|
||||||
try {
|
try {
|
||||||
AL.create();
|
AL.create();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
System.out.println("Unable to create OpenAL.\nPlease make sure that OpenAL is available on this system.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,9 @@ public abstract class BasicTest {
|
||||||
* Shutdowns OpenAL
|
* Shutdowns OpenAL
|
||||||
*/
|
*/
|
||||||
protected void alExit() {
|
protected void alExit() {
|
||||||
AL.destroy();
|
if(AL.isCreated()) {
|
||||||
|
AL.destroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue