aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--al/source.cpp7
-rw-r--r--al/source.h2
2 files changed, 2 insertions, 7 deletions
diff --git a/al/source.cpp b/al/source.cpp
index 475f3cf8..2f75678c 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -3709,11 +3709,6 @@ void ALsource::eax_dispatch(const EaxCall& call)
call.is_get() ? eax_get(call) : eax_set(call);
}
-void ALsource::eax_commit()
-{
- eax_commit(EaxCommitType::normal);
-}
-
void ALsource::eax_commit_and_update()
{
eax_commit();
@@ -4897,7 +4892,7 @@ void ALsource::eax_commit_filters()
void ALsource::eax_commit(EaxCommitType commit_type)
{
const auto primary_fx_slot_id = eax_al_context_->eax_get_primary_fx_slot_index();
- const auto is_primary_fx_slot_id_changed = (eax_primary_fx_slot_id_ == primary_fx_slot_id);
+ const auto is_primary_fx_slot_id_changed = (eax_primary_fx_slot_id_ != primary_fx_slot_id);
const auto is_forced = (
eax_is_version_changed_ ||
diff --git a/al/source.h b/al/source.h
index 850c31aa..b59f1ab7 100644
--- a/al/source.h
+++ b/al/source.h
@@ -161,7 +161,7 @@ struct ALsource {
public:
void eax_initialize(ALCcontext *context) noexcept;
void eax_dispatch(const EaxCall& call);
- void eax_commit();
+ void eax_commit() { eax_commit(EaxCommitType::normal); }
void eax_commit_and_update();
bool eax_is_initialized() const noexcept { return eax_al_context_ != nullptr; }