From 92c232c9d34c8ccf516059d9c8f17da797789dce Mon Sep 17 00:00:00 2001 From: Nikolas Date: Thu, 23 Jan 2025 21:05:44 +0100 Subject: [PATCH] [rtextures] Assign correct mipmap count to cubemaps --- src/rtextures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtextures.c b/src/rtextures.c index beecea76c..9d3f51f34 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -4229,7 +4229,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout) if (cubemap.id != 0) { cubemap.format = faces.format; - cubemap.mipmaps = 1; + cubemap.mipmaps = faces.mipmaps; } else TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image");