浏览代码

REVIEWED: LoadTextureFromImage()

Allow texture loading with no data transfer (in case image.data = NULL)
pull/2146/head
Ray 3 年前
父节点
当前提交
be371ebf99
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rtextures.c

+ 1
- 1
src/rtextures.c 查看文件

@ -2812,7 +2812,7 @@ Texture2D LoadTextureFromImage(Image image)
{
Texture2D texture = { 0 };
if ((image.data != NULL) && (image.width != 0) && (image.height != 0))
if ((image.width != 0) && (image.height != 0))
{
texture.id = rlLoadTexture(image.data, image.width, image.height, image.format, image.mipmaps);
}

正在加载...
取消
保存