slightly better at not messing up the border

This commit is contained in:
Alex Janka 2023-10-03 16:41:23 +11:00
parent a487264f40
commit 631a09b637

View file

@ -2,7 +2,7 @@ use std::{mem, path::PathBuf, sync::Arc};
use ash::{util::Align, vk, Entry, Instance}; use ash::{util::Align, vk, Entry, Instance};
use ash_window::enumerate_required_extensions; use ash_window::enumerate_required_extensions;
use librashader::runtime::vk::{FilterChain, FilterChainOptions, VulkanObjects}; use librashader::runtime::vk::{FilterChain, FilterChainOptions, FrameOptions, VulkanObjects};
use raw_window_handle::RawDisplayHandle; use raw_window_handle::RawDisplayHandle;
use winit::window::Window; use winit::window::Window;
@ -552,7 +552,10 @@ impl VulkanWindowInner {
}, },
self.vulkan_data.draw_command_buffer, self.vulkan_data.draw_command_buffer,
self.frame_counter, self.frame_counter,
None, Some(&FrameOptions {
clear_history: true,
frame_direction: 0,
}),
) )
.unwrap(); .unwrap();
self.frame_counter += 1; self.frame_counter += 1;