diff --git a/src/dawn/native/Device.cpp b/src/dawn/native/Device.cpp index 0855ebe000..39ef97f71a 100644 --- a/src/dawn/native/Device.cpp +++ b/src/dawn/native/Device.cpp @@ -1661,7 +1661,7 @@ namespace dawn::native { } void DeviceBase::ForceSetToggle(Toggle toggle, bool isEnabled) { - if (!mOverridenToggles.Has(toggle) && mEnabledToggles.Has(toggle) != isEnabled) { + if (mOverridenToggles.Has(toggle) && mEnabledToggles.Has(toggle) != isEnabled) { dawn::WarningLog() << "Forcing toggle \"" << ToggleEnumToName(toggle) << "\" to " << isEnabled << " when it was overriden to be " << !isEnabled; }