From a8ae6104896c12a458db038c3191cf73f2dd126e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 13 Aug 2009 15:35:10 -0700 Subject: Set context frequency only if it successfully starts --- Alc/ALc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Alc/ALc.c') 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); } -- cgit v1.2.3