diff options
Diffstat (limited to 'al')
-rw-r--r-- | al/event.cpp | 2 | ||||
-rw-r--r-- | al/event.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/al/event.cpp b/al/event.cpp index 0da48cbf..cd8ea7c2 100644 --- a/al/event.cpp +++ b/al/event.cpp @@ -122,7 +122,7 @@ void StopEventThrd(ALCcontext *ctx) evt_data = ring->getWriteVector().first; } while(evt_data.len == 0); } - new (evt_data.buf) AsyncEvent{EventType_KillThread}; + ::new(evt_data.buf) AsyncEvent{EventType_KillThread}; ring->writeAdvance(1); ctx->mEventSem.post(); @@ -4,6 +4,8 @@ #include "AL/al.h" #include "AL/alc.h" +#include "almalloc.h" + struct EffectState; @@ -46,6 +48,8 @@ struct AsyncEvent { AsyncEvent() noexcept = default; constexpr AsyncEvent(unsigned int type) noexcept : EnumType{type} { } + + DISABLE_ALLOC() }; |