Răsfoiți Sursa

Image manipulation functions depend on a flag

Ray 8 luni în urmă
părinte
comite
ab83e6dd41
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      src/rtextures.c

+ 2 - 0
src/rtextures.c

@@ -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