Skip to content
Permalink
Browse files
Merge pull request #7891 from kvark/vk-frame-view
[vk] Use proper view type of framebuffer images
  • Loading branch information
stenzek committed Mar 15, 2019
2 parents c712164 + 4173a8f commit 861fc42
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 861fc42

Please sign in to comment.