summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/rtextures.c2
1 files changed, 1 insertions, 1 deletions
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);
}