REVIEWED: LoadTextureCubemap()
to avoid crash #4429
This commit is contained in:
parent
8b9ea8cd5f
commit
7ad8fa689f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user