diff options
author | Chris Robinson <[email protected]> | 2022-02-13 22:29:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-13 22:38:10 -0800 |
commit | 98de566bc81427d0a37b574aa931cec33852a28f (patch) | |
tree | fabab5e586c4c58e996bf7752ef920c8d37c3434 /al/source.cpp | |
parent | ee946f57c3fffca4799cc5cb1eb6d8497df41c01 (diff) |
Avoid an unnecessary check
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/al/source.cpp b/al/source.cpp index e363b0da..f012005a 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -3764,16 +3764,13 @@ void ALsource::eax_update_filters() eax_update_filters_internal(); } -void ALsource::eax_update( - EaxContextSharedDirtyFlags dirty_flags) +void ALsource::eax_update(EaxContextSharedDirtyFlags) { - if (dirty_flags.primary_fx_slot_id) - { - if (eax_uses_primary_id_) - { - eax_update_primary_fx_slot_id(); - } - } + /* NOTE: EaxContextSharedDirtyFlags only has one flag (primary_fx_slot_id), + * which must be true for this to be called. + */ + if(eax_uses_primary_id_) + eax_update_primary_fx_slot_id(); } void ALsource::eax_commit_and_update() |