diff options
author | Chris Robinson <[email protected]> | 2022-06-18 14:43:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-06-18 14:43:58 -0700 |
commit | 5cff007d339ce95edf0f08efacf492221ecc4f0f (patch) | |
tree | 0b83a77830293216ae2ade626636fd208ccb87bd /al/source.h | |
parent | 97ab1afa35440e74dc775ccb88e454cedd2b532c (diff) |
Avoid a full struct compare to check for changes
Diffstat (limited to 'al/source.h')
-rw-r--r-- | al/source.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/al/source.h b/al/source.h index 5e88a7b3..850ce64f 100644 --- a/al/source.h +++ b/al/source.h @@ -207,6 +207,7 @@ private: using Eax2Props = EAX20BUFFERPROPERTIES; struct Eax2State { + bool changed{false}; Eax2Props i; // Immediate. Eax2Props d; // Deferred. }; @@ -214,6 +215,7 @@ private: using Eax3Props = EAX30SOURCEPROPERTIES; struct Eax3State { + bool changed{false}; Eax3Props i; // Immediate. Eax3Props d; // Deferred. }; @@ -230,6 +232,7 @@ private: }; struct Eax4State { + bool changed{false}; Eax4Props i; // Immediate. Eax4Props d; // Deferred. }; @@ -247,6 +250,7 @@ private: }; struct Eax5State { + bool changed{false}; Eax5Props i; // Immediate. Eax5Props d; // Deferred. }; |