mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
no destroy on !create
This commit is contained in:
parent
7d6fdb1b97
commit
bc53639971
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue