diff options
| author | Ray <[email protected]> | 2023-08-17 15:05:52 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-08-17 15:05:52 +0200 |
| commit | e4dcbd518091a5854a517ea4cfc3f7e2d29de1a7 (patch) | |
| tree | 29b64368f07f102e8f5a475c9a4aeabef6319f04 | |
| parent | a86c93ebc0095f6c2ffc14656bfc9e1e37070f72 (diff) | |
| download | raylib-e4dcbd518091a5854a517ea4cfc3f7e2d29de1a7.tar.gz raylib-e4dcbd518091a5854a517ea4cfc3f7e2d29de1a7.zip | |
Fix #3246
| -rw-r--r-- | src/rlgl.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |
