From f37cfc486d9f7ff84d21395f9135819f0b24f274 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 16 Mar 2010 17:35:51 -0700 Subject: Pass the context to alSetError --- Alc/alcEcho.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Alc/alcEcho.c') diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index ea4af8dd..69bbd386 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -81,10 +81,7 @@ ALboolean EchoDeviceUpdate(ALeffectState *effect, ALCdevice *Device) temp = realloc(state->SampleBuffer, maxlen * sizeof(ALfloat)); if(!temp) - { - alSetError(AL_OUT_OF_MEMORY); return AL_FALSE; - } state->SampleBuffer = temp; state->BufferLength = maxlen; } @@ -165,10 +162,7 @@ ALeffectState *EchoCreate(void) state = malloc(sizeof(*state)); if(!state) - { - alSetError(AL_OUT_OF_MEMORY); return NULL; - } state->state.Destroy = EchoDestroy; state->state.DeviceUpdate = EchoDeviceUpdate; -- cgit v1.2.3