From 24f047b07876746a31ccab3db6bb60a8cac813c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 6 Jun 2021 14:51:39 -0700 Subject: [PATCH] Fixed VS warnings. --- src/bgfx_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 02a233599..2164927ff 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -3710,7 +3710,7 @@ namespace bgfx BGFX_MUTEX_SCOPE(m_resourceApiLock); const bool isIndex16 = !_index32; - const uint32_t indexSize = isIndex16 ? 2 : 4; + const uint16_t indexSize = isIndex16 ? 2 : 4; return m_submit->getAvailTransientIndexBuffer(_num, indexSize); } @@ -3764,7 +3764,7 @@ namespace bgfx BGFX_MUTEX_SCOPE(m_resourceApiLock); const bool isIndex16 = !_index32; - const uint32_t indexSize = isIndex16 ? 2 : 4; + const uint16_t indexSize = isIndex16 ? 2 : 4; const uint32_t offset = m_submit->allocTransientIndexBuffer(_num, indexSize); TransientIndexBuffer& tib = *m_submit->m_transientIb;