no destroy on !create
This commit is contained in:
parent
7d6fdb1b97
commit
bc53639971
|
@ -124,6 +124,10 @@ public abstract class AL extends CoreAL {
|
|||
* Exit cleanly by calling destroy.
|
||||
*/
|
||||
public static void destroy() {
|
||||
if(!created) {
|
||||
return;
|
||||
}
|
||||
|
||||
ALC.alcDestroyContext(context.context);
|
||||
ALC.alcCloseDevice(device.device);
|
||||
ALC.destroy();
|
||||
|
|
Loading…
Reference in New Issue