aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-06-18 15:02:53 -0700
committerChris Robinson <[email protected]>2022-06-18 15:02:53 -0700
commit46be046ebb3d6f912031466caf413da6fef71e84 (patch)
tree29b3ecd350bdbf8fcd8659cc28270c2a6065ca83 /al/source.cpp
parent5cff007d339ce95edf0f08efacf492221ecc4f0f (diff)
Don't mark the EAX version changed when getting properties
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/al/source.cpp b/al/source.cpp
index ba622c66..6d76dde9 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -3703,9 +3703,6 @@ void ALsource::eax_initialize(ALCcontext *context) noexcept
void ALsource::eax_dispatch(const EaxCall& call)
{
- const auto eax_version = call.get_version();
- eax_is_version_changed_ |= (eax_version_ == eax_version);
- eax_version_ = eax_version;
call.is_get() ? eax_get(call) : eax_set(call);
}
@@ -4475,7 +4472,11 @@ void ALsource::eax5_set(const EaxCall& call, Eax5Props& props)
void ALsource::eax_set(const EaxCall& call)
{
- switch(call.get_version())
+ const auto eax_version = call.get_version();
+ eax_is_version_changed_ |= (eax_version_ == eax_version);
+ eax_version_ = eax_version;
+
+ switch(eax_version)
{
case 1: eax1_set(call, eax1_.d); break;
case 2: eax2_set(call, eax2_.d); eax2_.changed = true; break;