From 4173a8f54537e01cca5d52b69dfb7a9f98f08a47 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Fri, 15 Mar 2019 12:24:39 -0400 Subject: [PATCH] Use proper view type of framebuffer images --- Source/Core/VideoBackends/Vulkan/VKTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/Vulkan/VKTexture.cpp b/Source/Core/VideoBackends/Vulkan/VKTexture.cpp index a19e169412..202bbaad0f 100644 --- a/Source/Core/VideoBackends/Vulkan/VKTexture.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKTexture.cpp @@ -121,7 +121,7 @@ std::unique_ptr VKTexture::CreateAdopted(const TextureConfig& tex_con { std::unique_ptr texture = std::make_unique( tex_config, nullptr, image, layout, ComputeImageLayout::Undefined); - if (!texture->CreateView(VK_IMAGE_VIEW_TYPE_2D_ARRAY)) + if (!texture->CreateView(view_type)) return nullptr; return texture;