Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Nov 23, 2023
1 parent 1a32959 commit 2d17b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bgfx_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<int32_t>(max) );
const uint32_t num = 1 + bx::ceilLog2(max);

return uint8_t(num);
}
Expand Down

0 comments on commit 2d17b36

Please sign in to comment.