From 7ad8fa689f92de4796d9a4121677a16cd8798c81 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 26 Oct 2024 13:51:10 +0200 Subject: [PATCH] REVIEWED: `LoadTextureCubemap()` to avoid crash #4429 --- src/rtextures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtextures.c b/src/rtextures.c index 07645231..84144068 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -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