This commit is contained in:
Ray 2023-08-17 15:05:52 +02:00
parent a86c93ebc0
commit e4dcbd5180
1 changed files with 1 additions and 0 deletions

View File

@ -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