mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 04:53:03 +01:00
Destroy AL context before closing dhndl
fixes seggy on os x, i think
This commit is contained in:
parent
673800c947
commit
2fa53c0531
@ -323,9 +323,9 @@ DeviceError close_device(DeviceType type, uint32_t device_idx)
|
||||
alDeleteSources(1, &device->source);
|
||||
alDeleteBuffers(OPENAL_BUFS, device->buffers);
|
||||
|
||||
if ( !alcCloseDevice(device->dhndl) ) rc = de_AlError;
|
||||
alcMakeContextCurrent(NULL);
|
||||
if ( device->ctx ) alcDestroyContext(device->ctx);
|
||||
if ( !alcCloseDevice(device->dhndl) ) rc = de_AlError;
|
||||
}
|
||||
|
||||
free(device);
|
||||
|
Loading…
Reference in New Issue
Block a user