mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-18 13:41:26 +01:00
REVIEWED: LoadTextureCubemap() to avoid crash #4429
This commit is contained in:
@ -4194,7 +4194,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
|
|||||||
faces = GenImageColor(size, size*6, MAGENTA);
|
faces = GenImageColor(size, size*6, MAGENTA);
|
||||||
ImageFormat(&faces, image.format);
|
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);
|
ImageMipmaps(&faces);
|
||||||
|
|
||||||
// NOTE: Image formatting does not work with compressed textures
|
// NOTE: Image formatting does not work with compressed textures
|
||||||
|
|||||||
Reference in New Issue
Block a user