REVIEWED: LoadTextureFromImage()

Allow texture loading with no data transfer (in case image.data = NULL)
This commit is contained in:
Ray 2021-11-15 11:41:05 +01:00
parent b7bf220598
commit be371ebf99
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}