浏览代码

Update rtextures.c

pull/3839/head
Ray 1年前
父节点
当前提交
7d6e59170b
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. +3
    -5
      src/rtextures.c

+ 3
- 5
src/rtextures.c 查看文件

@ -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, // 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 // 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); 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.format = faces.format;
cubemap.mipmaps = 1; cubemap.mipmaps = 1;
} }
else TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image");
UnloadImage(faces); UnloadImage(faces);
} }

正在加载...
取消
保存