diff options
author | Chris Robinson <[email protected]> | 2018-01-29 01:00:53 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-29 01:00:53 -0800 |
commit | e7217760f39071c7aec542c8f3fbaad21c71924a (patch) | |
tree | 903f585eaa34750b2f7c4a65619c1cf4475bb8a0 /Alc/ALc.c | |
parent | a042dbf30524429b49adb63efda35f53054ae924 (diff) |
Don't bother with an explicit stop backend method
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -2434,11 +2434,8 @@ static ALCvoid FreeDevice(ALCdevice *device) TRACE("%p\n", device); if(device->Backend) - { - V0(device->Backend,close)(); DELETE_OBJ(device->Backend); - device->Backend = NULL; - } + device->Backend = NULL; almtx_destroy(&device->BackendLock); @@ -4146,8 +4143,6 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) // Find a playback device to open if((err=V(device->Backend,open)(deviceName)) != ALC_NO_ERROR) { - DELETE_OBJ(device->Backend); - device->Backend = NULL; FreeDevice(device); alcSetError(NULL, err); return NULL; @@ -4318,8 +4313,6 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, ); if((err=V(device->Backend,open)(deviceName)) != ALC_NO_ERROR) { - DELETE_OBJ(device->Backend); - device->Backend = NULL; FreeDevice(device); alcSetError(NULL, err); return NULL; |