vulkan: potential fix for compressed textures with mipmaps

This commit is contained in:
Sasha Szpakowski
2023-10-09 13:13:37 -03:00
parent 2789e5eabf
commit cf26e39d1b
+1 -1
View File
@@ -150,7 +150,7 @@ bool Texture::loadVolatile()
createTextureImageView();
textureSampler = vgfx->getCachedSampler(samplerState);
if (!isPixelFormatDepthStencil(format) && mipmapCount > 1 && getMipmapsMode() != MIPMAPS_NONE)
if (!isPixelFormatDepthStencil(format) && slices.getMipmapCount() <= 1 && getMipmapsMode() != MIPMAPS_NONE)
generateMipmaps();
if (renderTarget)