diff options
| author | Ray <[email protected]> | 2022-08-18 15:10:40 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-08-18 15:10:40 +0200 |
| commit | 904c5051251ff348234de20ea2336bb17ae5f3e8 (patch) | |
| tree | 89fd902370c93c319ac4198fd754828c2b0bf86b /src | |
| parent | d8ed3fb31e84aea6c7c213954779d6f640817329 (diff) | |
| download | raylib-904c5051251ff348234de20ea2336bb17ae5f3e8.tar.gz raylib-904c5051251ff348234de20ea2336bb17ae5f3e8.zip | |
minor tweak
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2712,10 +2712,10 @@ bool rlCheckRenderBatchLimit(int vCount) // Convert image data to OpenGL texture (returns OpenGL valid Id) unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) { - glBindTexture(GL_TEXTURE_2D, 0); // Free any old binding - unsigned int id = 0; + glBindTexture(GL_TEXTURE_2D, 0); // Free any old binding + // Check texture format support by OpenGL 1.1 (compressed textures not supported) #if defined(GRAPHICS_API_OPENGL_11) if (format >= RL_PIXELFORMAT_COMPRESSED_DXT1_RGB) |
