Report disconnect if the device fails to reset

This commit is contained in:
Chris Robinson
2009-09-27 04:58:42 -07:00
parent 4e9767bb22
commit bd6f3b1273
+2 -1
View File
@@ -1192,7 +1192,8 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint
if(ALCdevice_ResetPlayback(device) == ALC_FALSE)
{
SetALCError(ALC_INVALID_VALUE);
SetALCError(ALC_INVALID_DEVICE);
aluHandleDisconnect(device);
ProcessContext(NULL);
return NULL;
}