diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-03-31 16:15:00 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-03-31 16:15:00 +1100 |
| commit | 5e3837cadac73ba5b7d4085cddc48b0e816d826a (patch) | |
| tree | ced4c413506409f17806a5c6ea4864b4026ca924 /src/layer.cc | |
| parent | df2933fd9c0ea2a99e89a6837123dfdf8b549d4a (diff) | |
Fix vram leak in Cyberpunk 2077, reduce duplicated logic + general cleanup
Diffstat (limited to 'src/layer.cc')
| -rw-r--r-- | src/layer.cc | 6 |
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 |
