mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #7891 from kvark/vk-frame-view
[vk] Use proper view type of framebuffer images
This commit is contained in:
commit
861fc42fc9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user