From 83363e3332076a3b55d2c036a7e5b9da31e56afd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 18 Jun 2022 14:16:44 -0700 Subject: Fix checking if the primary effect slot changed --- al/source.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'al/source.cpp') 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_ || -- cgit v1.2.3