vulkan: fix cube textures

This commit is contained in:
niki
2022-08-15 00:06:50 +02:00
parent bc0b5f81f5
commit b2771dd111
4 changed files with 22 additions and 8 deletions
+1 -1
View File
@@ -459,9 +459,9 @@ VkImageType Vulkan::getImageType(TextureType textureType) {
switch (textureType) {
case TEXTURE_2D:
case TEXTURE_2D_ARRAY:
case TEXTURE_CUBE:
return VK_IMAGE_TYPE_2D;
case TEXTURE_VOLUME:
case TEXTURE_CUBE:
return VK_IMAGE_TYPE_3D;
default:
throw love::Exception("unknown texture type");