From 5840f5e76f2b803589074de254f282a5844c77ee Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 3 Sep 2014 15:40:15 -0700 Subject: Make the buffer's pack and unpack properties atomic --- OpenAL32/Include/alBuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index 557f2282..b67c7034 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -85,8 +85,8 @@ typedef struct ALbuffer { ALsizei LoopStart; ALsizei LoopEnd; - ALsizei UnpackAlign; - ALsizei PackAlign; + ATOMIC(ALsizei) UnpackAlign; + ATOMIC(ALsizei) PackAlign; /* Number of times buffer was attached to a source (deletion can only occur when 0) */ RefCount ref; -- cgit v1.2.3