aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcEcho.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-16 17:35:51 -0700
committerChris Robinson <[email protected]>2010-03-16 17:35:51 -0700
commitf37cfc486d9f7ff84d21395f9135819f0b24f274 (patch)
tree64666af29c8814b8b8c53e4bf1d8a39cc562cb2a /Alc/alcEcho.c
parenta337a59fb8c07b608944bff843b765656c56da64 (diff)
Pass the context to alSetError
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r--Alc/alcEcho.c6
1 files changed, 0 insertions, 6 deletions
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;