diff options
author | Chris Robinson <[email protected]> | 2022-06-18 14:16:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-06-18 14:16:44 -0700 |
commit | 83363e3332076a3b55d2c036a7e5b9da31e56afd (patch) | |
tree | cd75c66da9b9162c35250b5fe7b34bb03c3de4b3 /al/source.cpp | |
parent | d21ff67554d494ec53dcb4747b828478f8d5690a (diff) |
Fix checking if the primary effect slot changed
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 7 |
1 files changed, 1 insertions, 6 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_ || |