From 5a66053bc612932078f090f60f1325d03faa3658 Mon Sep 17 00:00:00 2001 From: Not-Nik Date: Thu, 24 Oct 2024 19:15:27 +0200 Subject: [PATCH] [rtextures] Load cubemap mipmaps --- src/rtextures.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rtextures.c b/src/rtextures.c index 61910186..7ed23917 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -4201,6 +4201,9 @@ TextureCubemap LoadTextureCubemap(Image image, int layout) faces = GenImageColor(size, size*6, MAGENTA); ImageFormat(&faces, image.format); + ImageMipmaps(&image); + ImageMipmaps(&faces); + // NOTE: Image formatting does not work with compressed textures for (int i = 0; i < 6; i++) ImageDraw(&faces, image, faceRecs[i], (Rectangle){ 0, (float)size*i, (float)size, (float)size }, WHITE);