mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
vulkan: potentially fix validation errors when creating a cubemap canvas.
This commit is contained in:
@@ -214,6 +214,8 @@ bool Texture::loadVolatile()
|
||||
viewInfo.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
|
||||
viewInfo.image = textureImage;
|
||||
viewInfo.viewType = Vulkan::getImageViewType(getTextureType());
|
||||
if (viewInfo.viewType == VK_IMAGE_VIEW_TYPE_CUBE)
|
||||
viewInfo.viewType = VK_IMAGE_VIEW_TYPE_2D;
|
||||
viewInfo.format = vulkanFormat.internalFormat;
|
||||
viewInfo.subresourceRange.aspectMask = imageAspect;
|
||||
viewInfo.subresourceRange.baseMipLevel = mip + rootView.startMipmap;
|
||||
|
||||
Reference in New Issue
Block a user