From 2d17b36a61a19d87c4cea38a04f83a31dd1ef9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 23 Nov 2023 09:42:25 -0800 Subject: [PATCH] Cleanup. --- src/bgfx_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 81f05017d..7d617d341 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -635,7 +635,7 @@ namespace bgfx if (_hasMips) { const uint32_t max = bx::max(_width, _height, _depth); - const uint32_t num = 1 + uint32_t(bx::log2(max) ); + const uint32_t num = 1 + bx::ceilLog2(max); return uint8_t(num); }