summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-08-13 15:35:10 -0700
committerChris Robinson <[email protected]>2009-08-13 15:35:10 -0700
commita8ae6104896c12a458db038c3191cf73f2dd126e (patch)
tree53670c2fd523c871b42df37e9fe37ce5b0587e31 /Alc
parentb86a1e5797419d784f2b2c74b3eaceb143c1deed (diff)
Set context frequency only if it successfully starts
Diffstat (limited to 'Alc')
-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);
}