mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
Fixed VS2013 warning.
This commit is contained in:
parent
4edb8bc376
commit
a96837c1ea
1 changed files with 3 additions and 2 deletions
|
@ -748,8 +748,9 @@ namespace bgfx
|
||||||
|
|
||||||
uint32_t reserve(uint16_t* _num)
|
uint32_t reserve(uint16_t* _num)
|
||||||
{
|
{
|
||||||
BX_CHECK(m_num+_num < BGFX_CONFIG_MAX_MATRIX_CACHE, "Matrix cache overflow. %d (max: %d)", m_num+_num, BGFX_CONFIG_MAX_MATRIX_CACHE);
|
uint32_t num = *_num;
|
||||||
uint32_t num = bx::uint32_min(BGFX_CONFIG_MAX_MATRIX_CACHE-m_num, *_num);
|
BX_CHECK(m_num+num < BGFX_CONFIG_MAX_MATRIX_CACHE, "Matrix cache overflow. %d (max: %d)", m_num+num, BGFX_CONFIG_MAX_MATRIX_CACHE);
|
||||||
|
num = bx::uint32_min(num, BGFX_CONFIG_MAX_MATRIX_CACHE-m_num);
|
||||||
uint32_t first = m_num;
|
uint32_t first = m_num;
|
||||||
m_num += num;
|
m_num += num;
|
||||||
*_num = (uint16_t)num;
|
*_num = (uint16_t)num;
|
||||||
|
|
Loading…
Reference in a new issue