diff options
Diffstat (limited to 'Alc')
-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; } |