Skip to content

Commit

Permalink
Image manipulation functions depend on a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Dec 19, 2024
1 parent 03ff864 commit ab83e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab83e6d

Please sign in to comment.