summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 3756e5ac..9ca099ac 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -2945,6 +2945,7 @@ bool rlCheckRenderBatchLimit(int vCount)
unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount)
{
unsigned int id = 0;
+ if (data == NULL) return id;
glBindTexture(GL_TEXTURE_2D, 0); // Free any old binding