diff options
author | Chris Robinson <[email protected]> | 2018-11-30 16:56:23 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-30 16:56:23 -0800 |
commit | 4b7ac4a6ed290182de945274afd90fc4cece0283 (patch) | |
tree | 93cdffafcbd6388bd5fea1bdbf874b92a729b094 /OpenAL32/alSource.cpp | |
parent | 364850e8f9a224144c91c7b562d44321b7aa4505 (diff) |
Don't bother making ALvoiceProps dynamically sized
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r-- | OpenAL32/alSource.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index c0e48c5c..87729c73 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -68,9 +68,7 @@ void UpdateSourceProps(ALsource *source, ALvoice *voice, ALCcontext *context) /* Get an unused property container, or allocate a new one as needed. */ ALvoiceProps *props{context->FreeVoiceProps.load(std::memory_order_acquire)}; if(!props) - props = static_cast<ALvoiceProps*>(al_calloc(16, - FAM_SIZE(ALvoiceProps, Send, source->Send.size())) - ); + props = new ALvoiceProps{}; else { ALvoiceProps *next; |