aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 1749a9c9..25fa6733 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1098,7 +1098,8 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint
ALContext = NULL;
SetALCError(ALC_INVALID_VALUE);
}
- ALContext->Frequency = device->Frequency;
+ else
+ ALContext->Frequency = device->Frequency;
ProcessContext(NULL);
}