no destroy on !create

This commit is contained in:
Brian Matzon 2004-01-08 22:41:22 +00:00
parent 7d6fdb1b97
commit bc53639971
1 changed files with 4 additions and 0 deletions

View File

@ -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();