Skip to content

Commit 92c232c

Browse files
committed
[rtextures] Assign correct mipmap count to cubemaps
1 parent 151cfa8 commit 92c232c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtextures.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4229,7 +4229,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
42294229
if (cubemap.id != 0)
42304230
{
42314231
cubemap.format = faces.format;
4232-
cubemap.mipmaps = 1;
4232+
cubemap.mipmaps = faces.mipmaps;
42334233
}
42344234
else TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image");
42354235

0 commit comments

Comments
 (0)