From 46be046ebb3d6f912031466caf413da6fef71e84 Mon Sep 17 00:00:00 2001 From: Chris Robinson <chris.kcat@gmail.com> Date: Sat, 18 Jun 2022 15:02:53 -0700 Subject: Don't mark the EAX version changed when getting properties --- al/source.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'al/source.cpp') 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; -- cgit v1.2.3