diff options
Diffstat (limited to 'src/device_context.cc')
| -rw-r--r-- | src/device_context.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/device_context.cc b/src/device_context.cc index 49b7808..97103de 100644 --- a/src/device_context.cc +++ b/src/device_context.cc @@ -134,9 +134,11 @@ void DeviceContext::notify_antilag_update(const VkAntiLagDataAMD& data) { return; } - if (this->antilag_mode == VK_ANTI_LAG_MODE_ON_AMD) { - this->sleep_in_input(); + if (this->antilag_mode != VK_ANTI_LAG_MODE_ON_AMD) { + return; } + + this->sleep_in_input(); } void DeviceContext::notify_queue_present(const QueueContext& queue) { |
