From 7ee81eac0fd1ecd719c906cfc8fc9a81fcf0ffbe Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 28 Dec 2009 23:19:13 -0800 Subject: Store ALC errors with the device when possible --- Alc/dsound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/dsound.c') diff --git a/Alc/dsound.c b/Alc/dsound.c index ac54b487..43935def 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -233,7 +233,7 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam pData = calloc(1, sizeof(DSoundData)); if(!pData) { - alcSetError(ALC_OUT_OF_MEMORY); + alcSetError(device, ALC_OUT_OF_MEMORY); DSoundUnload(); return ALC_FALSE; } -- cgit v1.2.3