summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/rlgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 63b4fa7f..572e86c4 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -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);