[rtextures] Only build cubemap mipmaps when necessary

This commit is contained in:
Nikolas 2025-01-23 21:04:50 +01:00
parent 7bfc8e8ca7
commit 151cfa8394
No known key found for this signature in database
GPG Key ID: E95F679E3CDD9784

View File

@ -4208,8 +4208,11 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
Image mipmapped = ImageCopy(image);
#if defined(SUPPORT_IMAGE_MANIPULATION)
if (image.mipmaps > 1)
{
ImageMipmaps(&mipmapped);
ImageMipmaps(&faces);
}
#endif
// NOTE: Image formatting does not work with compressed textures