mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(sound): use alloca instead of dynamic allocation to make MSVC happy
This commit is contained in:
parent
7fe7ed96d6
commit
7838a0fe85
@ -622,7 +622,7 @@ void SESound::ProcessVolumeUpdates() {
|
||||
|
||||
// Determine dirty channel groups
|
||||
|
||||
bool dirtyChannelGroups[SESound::s_ChannelGroups.Count()];
|
||||
auto dirtyChannelGroups = static_cast<bool*>(alloca(SESound::s_ChannelGroups.Count() * sizeof(bool)));
|
||||
memset(dirtyChannelGroups, 0, SESound::s_ChannelGroups.Count() * sizeof(bool));
|
||||
|
||||
for (uint32_t i = 0; i < SESound::s_ChannelGroups.Count(); i++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user