diff options
author | bunnei <bunneidev@gmail.com> | 2020-07-28 00:52:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 00:52:03 +0200 |
commit | 6b35317ff3ec51a0d28181094ee73634e639d658 (patch) | |
tree | 4e440453a1f19828977de0d8c14a332e1df3b0c3 /src/video_core/renderer_vulkan/vk_swapchain.cpp | |
parent | Merge pull request #4434 from CrazyMax/lang_unused_var (diff) | |
parent | vulkan: Resolve -Wmissing-field-initializer warnings (diff) | |
download | yuzu-6b35317ff3ec51a0d28181094ee73634e639d658.tar yuzu-6b35317ff3ec51a0d28181094ee73634e639d658.tar.gz yuzu-6b35317ff3ec51a0d28181094ee73634e639d658.tar.bz2 yuzu-6b35317ff3ec51a0d28181094ee73634e639d658.tar.lz yuzu-6b35317ff3ec51a0d28181094ee73634e639d658.tar.xz yuzu-6b35317ff3ec51a0d28181094ee73634e639d658.tar.zst yuzu-6b35317ff3ec51a0d28181094ee73634e639d658.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp index c25e312b6..6bfd2abae 100644 --- a/src/video_core/renderer_vulkan/vk_swapchain.cpp +++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp @@ -156,6 +156,7 @@ void VKSwapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, .minImageCount = requested_image_count, .imageFormat = surface_format.format, .imageColorSpace = surface_format.colorSpace, + .imageExtent = {}, .imageArrayLayers = 1, .imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, .imageSharingMode = VK_SHARING_MODE_EXCLUSIVE, @@ -204,6 +205,7 @@ void VKSwapchain::CreateImageViews() { .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, .pNext = nullptr, .flags = 0, + .image = {}, .viewType = VK_IMAGE_VIEW_TYPE_2D, .format = image_format, .components = |