aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index ffd572e3..dd2b165c 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -3094,10 +3094,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
device->UpdateSize = 1024;
if(!PlaybackBackend.getFactory)
- {
- device->Funcs = &PlaybackBackend.Funcs;
- device->Backend = create_backend_wrapper(device, ALCbackend_Playback);
- }
+ device->Backend = create_backend_wrapper(device, &PlaybackBackend.Funcs,
+ ALCbackend_Playback);
else
{
ALCbackendFactory *factory = PlaybackBackend.getFactory();
@@ -3376,10 +3374,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName,
device->DeviceName = NULL;
if(!CaptureBackend.getFactory)
- {
- device->Funcs = &CaptureBackend.Funcs;
- device->Backend = create_backend_wrapper(device, ALCbackend_Capture);
- }
+ device->Backend = create_backend_wrapper(device, &CaptureBackend.Funcs,
+ ALCbackend_Capture);
else
{
ALCbackendFactory *factory = CaptureBackend.getFactory();