Image manipulation functions depend on a flag

This commit is contained in:
Ray
2024-12-19 13:24:30 +01:00
parent 03ff864087
commit ab83e6dd41

View File

@@ -4204,8 +4204,10 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
ImageFormat(&faces, image.format); ImageFormat(&faces, image.format);
Image mipmapped = ImageCopy(image); Image mipmapped = ImageCopy(image);
#if defined(SUPPORT_IMAGE_MANIPULATION)
ImageMipmaps(&mipmapped); ImageMipmaps(&mipmapped);
ImageMipmaps(&faces); ImageMipmaps(&faces);
#endif
// NOTE: Image formatting does not work with compressed textures // NOTE: Image formatting does not work with compressed textures