[rtextures] Assign correct mipmap count to cubemaps
This commit is contained in:
parent
151cfa8394
commit
92c232c9d3
|
|
@ -4229,7 +4229,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
|
||||||
if (cubemap.id != 0)
|
if (cubemap.id != 0)
|
||||||
{
|
{
|
||||||
cubemap.format = faces.format;
|
cubemap.format = faces.format;
|
||||||
cubemap.mipmaps = 1;
|
cubemap.mipmaps = faces.mipmaps;
|
||||||
}
|
}
|
||||||
else TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image");
|
else TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user