From be371ebf99043fd77d579856fd079e8cf4a0e67b Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 15 Nov 2021 11:41:05 +0100 Subject: REVIEWED: LoadTextureFromImage() Allow texture loading with no data transfer (in case image.data = NULL) --- src/rtextures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rtextures.c b/src/rtextures.c index 34c4685f..ceb1586c 100644 --- a/src/rtextures.c +++ b/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); } -- cgit v1.2.3