mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-03 08:28:30 +00: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);
|
||||
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
|
||||
|
Reference in New Issue
Block a user