REVIEWED: LoadTextureCubemap() to avoid crash #4429

This commit is contained in:
Ray 2024-10-26 13:51:10 +02:00
parent 8b9ea8cd5f
commit 7ad8fa689f

View File

@ -4194,7 +4194,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
faces = GenImageColor(size, size*6, MAGENTA);
ImageFormat(&faces, image.format);
ImageMipmaps(&image);
//ImageMipmaps(&image); // WARNING: image is a copy, it can't be done here, no intention to pass image by reference...
ImageMipmaps(&faces);
// NOTE: Image formatting does not work with compressed textures