Fixed MSVC L4 warnings.

This commit is contained in:
Branimir Karadžić
2016-05-06 21:29:47 -07:00
parent 537c70965d
commit 071912b2d2
12 changed files with 42 additions and 40 deletions

View File

@@ -61,7 +61,7 @@ class ExampleMesh : public entry::AppI
if (!entry::processEvents(m_width, m_height, m_debug, m_reset) )
{
// Set view 0 default viewport.
bgfx::setViewRect(0, 0, 0, m_width, m_height);
bgfx::setViewRect(0, 0, 0, uint16_t(m_width), uint16_t(m_height) );
// This dummy draw call is here to make sure that view 0 is cleared
// if no other draw calls are submitted to view 0.
@@ -109,7 +109,7 @@ class ExampleMesh : public entry::AppI
bgfx::setViewTransform(0, view, proj);
// Set view 0 default viewport.
bgfx::setViewRect(0, 0, 0, m_width, m_height);
bgfx::setViewRect(0, 0, 0, uint16_t(m_width), uint16_t(m_height) );
}
float mtx[16];