Browse Source

[rtextures] Only build cubemap mipmaps when necessary

pull/4721/head
Nikolas 4 weeks ago
parent
commit
151cfa8394
No known key found for this signature in database GPG Key ID: E95F679E3CDD9784
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/rtextures.c

+ 5
- 2
src/rtextures.c View File

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

Loading…
Cancel
Save