summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-08-18 15:10:40 +0200
committerRay <[email protected]>2022-08-18 15:10:40 +0200
commit904c5051251ff348234de20ea2336bb17ae5f3e8 (patch)
tree89fd902370c93c319ac4198fd754828c2b0bf86b /src
parentd8ed3fb31e84aea6c7c213954779d6f640817329 (diff)
downloadraylib-904c5051251ff348234de20ea2336bb17ae5f3e8.tar.gz
raylib-904c5051251ff348234de20ea2336bb17ae5f3e8.zip
minor tweak
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 2fa604da..123791a0 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -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)