From 6eae48a73caffcff6209f684ca0bb67eb59406a9 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: Fri, 25 Oct 2019 14:58:01 -0700 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 be4c29843..b27f71267 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -534,7 +534,7 @@ namespace bgfx if (_hasMips) { const uint32_t max = bx::max(_width, _height, _depth); - const uint32_t num = 1 + uint32_t(bx::log2((int32_t)max) ); + const uint32_t num = 1 + uint32_t(bx::log2(max) ); return uint8_t(num); }