From bd6f3b1273e6ba2834e09b5ba17d1c4f20ab5a48 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 27 Sep 2009 04:58:42 -0700 Subject: Report disconnect if the device fails to reset --- Alc/ALc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 0382881c..6201ff5f 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -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; } -- cgit v1.2.3