diff options
author | Chris Robinson <[email protected]> | 2009-09-27 04:58:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-27 04:58:42 -0700 |
commit | bd6f3b1273e6ba2834e09b5ba17d1c4f20ab5a48 (patch) | |
tree | 3661f507ea85755abdcf23044aa58906bef6e531 /Alc/ALc.c | |
parent | 4e9767bb22c4dcf407dc55b889c4c8c0be17cd67 (diff) |
Report disconnect if the device fails to reset
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |