mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Cleanup.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user