mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
vulkan: potential fix for compressed textures with mipmaps
This commit is contained in:
@@ -150,7 +150,7 @@ bool Texture::loadVolatile()
|
|||||||
createTextureImageView();
|
createTextureImageView();
|
||||||
textureSampler = vgfx->getCachedSampler(samplerState);
|
textureSampler = vgfx->getCachedSampler(samplerState);
|
||||||
|
|
||||||
if (!isPixelFormatDepthStencil(format) && mipmapCount > 1 && getMipmapsMode() != MIPMAPS_NONE)
|
if (!isPixelFormatDepthStencil(format) && slices.getMipmapCount() <= 1 && getMipmapsMode() != MIPMAPS_NONE)
|
||||||
generateMipmaps();
|
generateMipmaps();
|
||||||
|
|
||||||
if (renderTarget)
|
if (renderTarget)
|
||||||
|
|||||||
Reference in New Issue
Block a user