Бранимир Караџић %!s(int64=6) %!d(string=hai) anos
pai
achega
6eae48a73c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/bgfx_p.h

+ 1 - 1
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<int32_t>(max) );
 
 			return uint8_t(num);
 		}