From ab83e6dd41f7d0cb85cd7dc37555bbd384650109 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 19 Dec 2024 13:24:30 +0100 Subject: [PATCH] Image manipulation functions depend on a flag --- src/rtextures.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rtextures.c b/src/rtextures.c index 06f81e57..e0ae5f4a 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -4204,8 +4204,10 @@ TextureCubemap LoadTextureCubemap(Image image, int layout) ImageFormat(&faces, image.format); Image mipmapped = ImageCopy(image); + #if defined(SUPPORT_IMAGE_MANIPULATION) ImageMipmaps(&mipmapped); ImageMipmaps(&faces); + #endif // NOTE: Image formatting does not work with compressed textures