diff options
author | Chris Robinson <[email protected]> | 2009-08-13 15:35:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-13 15:35:10 -0700 |
commit | a8ae6104896c12a458db038c3191cf73f2dd126e (patch) | |
tree | 53670c2fd523c871b42df37e9fe37ce5b0587e31 /Alc/ALc.c | |
parent | b86a1e5797419d784f2b2c74b3eaceb143c1deed (diff) |
Set context frequency only if it successfully starts
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |