Commit 92f36440 authored by Steven Noonan's avatar Steven Noonan Committed by David Reid

denormals: fix inverted logic in ma_device_{disable,restore}_denormals

It was only disabling denormals when "noDisableDenormals" was set, which
is the opposite of what was intended.
Signed-off-by: default avatarSteven Noonan <steven@uplinklabs.net>
parent 9bafb7fc
......@@ -14903,7 +14903,7 @@ static MA_INLINE unsigned int ma_device_disable_denormals(ma_device* pDevice)
{
MA_ASSERT(pDevice != NULL);
if (pDevice->noDisableDenormals) {
if (!pDevice->noDisableDenormals) {
return ma_disable_denormals();
} else {
return 0;
......@@ -14914,7 +14914,7 @@ static MA_INLINE void ma_device_restore_denormals(ma_device* pDevice, unsigned i
{
MA_ASSERT(pDevice != NULL);
if (pDevice->noDisableDenormals) {
if (!pDevice->noDisableDenormals) {
ma_restore_denormals(prevState);
} else {
/* Do nothing. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment