Set context frequency only if it successfully starts

This commit is contained in:
Chris Robinson 2009-08-13 15:35:10 -07:00
parent b86a1e5797
commit a8ae610489

View File

@ -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);
}