Skip to content
Permalink
Browse files

Use proper view type of framebuffer images

  • Loading branch information...
kvark committed Mar 15, 2019
1 parent 7b354fa commit 4173a8f54537e01cca5d52b69dfb7a9f98f08a47
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/VideoBackends/Vulkan/VKTexture.cpp
@@ -121,7 +121,7 @@ std::unique_ptr<VKTexture> VKTexture::CreateAdopted(const TextureConfig& tex_con
{
std::unique_ptr<VKTexture> texture = std::make_unique<VKTexture>(
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;

0 comments on commit 4173a8f

Please sign in to comment.
You can’t perform that action at this time.