From 7a6444e5a7d3999eee54d1fb87d6c0a8e601f868 Mon Sep 17 00:00:00 2001 From: Elkantor Date: Thu, 31 Dec 2020 09:40:20 +0100 Subject: [PATCH] Remove unused condition in 'GenerateMipmaps' function for GRAPHICS_API_OPENGL_11 --- src/rlgl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rlgl.h b/src/rlgl.h index 1b42c6413..387a6df27 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -4788,8 +4788,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);