Browse Source

REVIEWED: `LoadTextureCubemap()` to avoid crash #4429

pull/4439/head
Ray 1 month ago
parent
commit
7ad8fa689f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rtextures.c

+ 1
- 1
src/rtextures.c View File

@ -4194,7 +4194,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
faces = GenImageColor(size, size*6, MAGENTA);
ImageFormat(&faces, image.format);
ImageMipmaps(&image);
o">//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…
Cancel
Save