diff options
author | Chris Robinson <[email protected]> | 2018-01-22 15:46:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-22 15:46:46 -0800 |
commit | d6d6ec03f16dca3000fdc74dddda5e9a37dfdc6f (patch) | |
tree | a0c956ba081010f9895bed555a3f6e48ab20902a /OpenAL32/alBuffer.c | |
parent | fce72610bbed5705c12e38b84a2e088f1039e375 (diff) |
Don't bother allocating cleared memory for buffer storage
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index d6014cc6..0fda943f 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -932,7 +932,7 @@ static ALenum LoadData(ALbuffer *ALBuf, ALuint freq, ALsizei frames, enum UserFm newsize = (newsize+15) & ~0xf; if(newsize != ALBuf->BytesAlloc) { - void *temp = al_calloc(16, (size_t)newsize); + void *temp = al_malloc(16, (size_t)newsize); if(!temp && newsize) { WriteUnlock(&ALBuf->lock); |