diff options
| author | Victor Gallet <[email protected]> | 2021-01-06 13:27:32 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-06 13:27:32 +0100 |
| commit | a6cd6eedbe4666318d1e9b7a291cbfaba9410b26 (patch) | |
| tree | e3db434d8b0f57f93adcb86a32d558d159f6ea58 /src/rlgl.h | |
| parent | 7bd33e4406adc31b0c72fd771733c24397b783b5 (diff) | |
| download | raylib-a6cd6eedbe4666318d1e9b7a291cbfaba9410b26.tar.gz raylib-a6cd6eedbe4666318d1e9b7a291cbfaba9410b26.zip | |
Remove unused condition in 'GenerateMipmaps' function for GRAPHICS_API_OPENGL_11 (#1496)
Diffstat (limited to 'src/rlgl.h')
| -rw-r--r-- | src/rlgl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4791,8 +4791,8 @@ static int GenerateMipmaps(unsigned char *data, int baseWidth, int baseHeight) // Count mipmap levels required while ((width != 1) && (height != 1)) { - if (width != 1) width /= 2; - if (height != 1) height /= 2; + width /= 2; + height /= 2; TRACELOGD("TEXTURE: Next mipmap size: %i x %i", width, height); |
