Skip to content
Snippets Groups Projects
Commit 7506ac41 authored by Marshall Mohror's avatar Marshall Mohror Committed by Fernando Sahmkow
Browse files

Presentation: Fix turning FSR on and off in settings

parent 4ad22c7d
No related branches found
No related tags found
No related merge requests found
......@@ -362,6 +362,17 @@ void VKBlitScreen::CreateDynamicResources() {
}
void VKBlitScreen::RefreshResources(const Tegra::FramebufferConfig& framebuffer) {
if (Settings::values.scaling_filter.GetValue() == Settings::ScalingFilter::Fsr) {
if (!fsr) {
const auto& layout = render_window.GetFramebufferLayout();
fsr = std::make_unique<FSR>(
device, memory_allocator, image_count,
VkExtent2D{.width = layout.screen.GetWidth(), .height = layout.screen.GetHeight()});
}
} else {
fsr.reset();
}
if (framebuffer.width == raw_width && framebuffer.height == raw_height && !raw_images.empty()) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment