소스 검색

Remove unused condition in 'GenerateMipmaps' function for GRAPHICS_API_OPENGL_11 (#1496)

Victor Gallet 4 년 전
부모
커밋
a6cd6eedbe
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/rlgl.h

+ 2 - 2
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);