summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_swapchain.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-04 06:54:31 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:59 +0200
commit117bc2ae6c9683fd4530cfddb33b4ffc9419cff7 (patch)
treeabe55ef4689045d68e88938078544fbdf0356c46 /src/video_core/renderer_vulkan/vk_swapchain.cpp
parentandroid: Game data cache (diff)
downloadyuzu-117bc2ae6c9683fd4530cfddb33b4ffc9419cff7.tar
yuzu-117bc2ae6c9683fd4530cfddb33b4ffc9419cff7.tar.gz
yuzu-117bc2ae6c9683fd4530cfddb33b4ffc9419cff7.tar.bz2
yuzu-117bc2ae6c9683fd4530cfddb33b4ffc9419cff7.tar.lz
yuzu-117bc2ae6c9683fd4530cfddb33b4ffc9419cff7.tar.xz
yuzu-117bc2ae6c9683fd4530cfddb33b4ffc9419cff7.tar.zst
yuzu-117bc2ae6c9683fd4530cfddb33b4ffc9419cff7.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/vk_swapchain.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp
index e43a993f9..afcf34fba 100644
--- a/src/video_core/renderer_vulkan/vk_swapchain.cpp
+++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp
@@ -107,16 +107,17 @@ VkCompositeAlphaFlagBitsKHR ChooseAlphaFlags(const VkSurfaceCapabilitiesKHR& cap
Swapchain::Swapchain(VkSurfaceKHR surface_, const Device& device_, Scheduler& scheduler_,
u32 width_, u32 height_, bool srgb)
: surface{surface_}, device{device_}, scheduler{scheduler_} {
- Create(width_, height_, srgb);
+ Create(surface_, width_, height_, srgb);
}
Swapchain::~Swapchain() = default;
-void Swapchain::Create(u32 width_, u32 height_, bool srgb) {
+void Swapchain::Create(VkSurfaceKHR surface_, u32 width_, u32 height_, bool srgb) {
is_outdated = false;
is_suboptimal = false;
width = width_;
height = height_;
+ surface = surface_;
const auto physical_device = device.GetPhysical();
const auto capabilities{physical_device.GetSurfaceCapabilitiesKHR(surface)};