Skip to content

Commit

Permalink
REVIEWED: LoadTextureCubemap() to avoid crash #4429
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Oct 26, 2024
1 parent 8b9ea8c commit 7ad8fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ad8fa6

Please sign in to comment.