aboutsummaryrefslogtreecommitdiffstats
path: root/al/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'al/state.cpp')
-rw-r--r--al/state.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/al/state.cpp b/al/state.cpp
index ee05d3b9..f70d3689 100644
--- a/al/state.cpp
+++ b/al/state.cpp
@@ -834,12 +834,12 @@ END_API_FUNC
void UpdateContextProps(ALCcontext *context)
{
/* Get an unused proprty container, or allocate a new one as needed. */
- ALcontextProps *props{context->mFreeContextProps.load(std::memory_order_acquire)};
+ ContextProps *props{context->mFreeContextProps.load(std::memory_order_acquire)};
if(!props)
- props = new ALcontextProps{};
+ props = new ContextProps{};
else
{
- ALcontextProps *next;
+ ContextProps *next;
do {
next = props->next.load(std::memory_order_relaxed);
} while(context->mFreeContextProps.compare_exchange_weak(props, next,
@@ -855,7 +855,7 @@ void UpdateContextProps(ALCcontext *context)
props->mDistanceModel = context->mDistanceModel;
/* Set the new container for updating internal parameters. */
- props = context->mUpdate.exchange(props, std::memory_order_acq_rel);
+ props = context->mParams.ContextUpdate.exchange(props, std::memory_order_acq_rel);
if(props)
{
/* If there was an unused update container, put it back in the