aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/base.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/backends/base.c b/Alc/backends/base.c
index 07c33ba1..ff808f53 100644
--- a/Alc/backends/base.c
+++ b/Alc/backends/base.c
@@ -13,10 +13,9 @@ extern inline ALuint64 GetDeviceClockTime(ALCdevice *device);
/* Base ALCbackend method implementations. */
void ALCbackend_Construct(ALCbackend *self, ALCdevice *device)
{
- int ret;
- self->mDevice = device;
- ret = almtx_init(&self->mMutex, almtx_recursive);
+ int ret = almtx_init(&self->mMutex, almtx_recursive);
assert(ret == althrd_success);
+ self->mDevice = device;
}
void ALCbackend_Destruct(ALCbackend *self)