aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-21 09:07:02 -0800
committerChris Robinson <[email protected]>2018-11-21 09:07:02 -0800
commit9f2a77f78801da760df582900ec862fff6438a09 (patch)
tree5a8bdbbf8519aaca1bb92c836b165fad64b60b39 /Alc/alu.cpp
parent8f43f737ba5f0ed32a37498f6787c34257a3f796 (diff)
Use RAII when handling the mixer's FPU state
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index faa011a2..b3ffd24b 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -1697,7 +1697,7 @@ void aluMixData(ALCdevice *device, ALvoid *OutBuffer, ALsizei NumSamples)
ALCcontext *ctx;
ALsizei i, c;
- START_MIXER_MODE();
+ FPUCtl mixer_mode{};
for(SamplesDone = 0;SamplesDone < NumSamples;)
{
SamplesToDo = mini(NumSamples-SamplesDone, BUFFERSIZE);
@@ -1815,7 +1815,6 @@ void aluMixData(ALCdevice *device, ALvoid *OutBuffer, ALsizei NumSamples)
SamplesDone += SamplesToDo;
}
- END_MIXER_MODE();
}