aboutsummaryrefslogtreecommitdiff
path: root/src/layer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/layer.cc')
-rw-r--r--src/layer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layer.cc b/src/layer.cc
index cf9f56e..2743030 100644
--- a/src/layer.cc
+++ b/src/layer.cc
@@ -756,11 +756,11 @@ static VKAPI_ATTR VkResult VKAPI_CALL CreateSwapchainKHR(
}
auto insertion = [&]() -> std::unique_ptr<SwapchainMonitor> {
- if (!layer_context.should_expose_reflex) {
- return std::make_unique<AntiLagSwapchainMonitor>(
+ if (layer_context.should_expose_reflex) {
+ return std::make_unique<ReflexSwapchainMonitor>(
*context, was_low_latency_requested);
}
- return std::make_unique<ReflexSwapchainMonitor>(
+ return std::make_unique<AntiLagSwapchainMonitor>(
*context, was_low_latency_requested);
}();
const auto did_emplace = context->swapchain_monitors