Skip to content

Commit e4dcbd5

Browse files
committed
Fix #3246
1 parent a86c93e commit e4dcbd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rlgl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2945,6 +2945,7 @@ bool rlCheckRenderBatchLimit(int vCount)
29452945
unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount)
29462946
{
29472947
unsigned int id = 0;
2948+
if (data == NULL) return id;
29482949

29492950
glBindTexture(GL_TEXTURE_2D, 0); // Free any old binding
29502951

0 commit comments

Comments
 (0)