Update rtextures.c

This commit is contained in:
Ray 2024-02-26 10:49:04 +01:00
parent 3086bf1668
commit 7d6e59170b

View File

@ -3874,15 +3874,13 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
// NOTE: Cubemap data is expected to be provided as 6 images in a single data array,
// one after the other (that's a vertical image), following convention: +X, -X, +Y, -Y, +Z, -Z
cubemap.id = rlLoadTextureCubemap(faces.data, size, faces.format);
if (cubemap.id == 0)
{
TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image");
}
else
if (cubemap.id != 0)
{
cubemap.format = faces.format;
cubemap.mipmaps = 1;
}
else TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image");
UnloadImage(faces);
}