diff options
author | Chris Robinson <[email protected]> | 2020-08-24 16:34:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-08-24 16:34:53 -0700 |
commit | 73ab9d46c88f034a32a6fb174e98fd23dec1ff98 (patch) | |
tree | eb1bc6a757fc533369ee1fd74b14378d3033cf4d /al/auxeffectslot.h | |
parent | f9d6aa2f480a0d647e8ad901a5680c335ba4fa0c (diff) |
Use an intrusive_ptr to hold the unapplied effect state
Diffstat (limited to 'al/auxeffectslot.h')
-rw-r--r-- | al/auxeffectslot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h index c9e54f60..71f99a11 100644 --- a/al/auxeffectslot.h +++ b/al/auxeffectslot.h @@ -49,7 +49,7 @@ struct ALeffectslot { ALenum Type{AL_EFFECT_NULL}; EffectProps Props{}; - EffectState *State{nullptr}; + al::intrusive_ptr<EffectState> State; } Effect; std::atomic_flag PropsClean; |