summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/02-metaballs/metaballs.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-05-12 08:42:02 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-05-12 08:42:02 +0200
commit2fe208917976a66a315c83672cc2242ffb2ac88a (patch)
tree461cb81c293cd0a429db12a2ffe055a4b9400861 /3rdparty/bgfx/examples/02-metaballs/metaballs.cpp
parentf7f6569add35e5588fcdf686af4b4d9ad5396b11 (diff)
Update BGFX, BX, Benchmark and RapidJSON (nw)
Diffstat (limited to '3rdparty/bgfx/examples/02-metaballs/metaballs.cpp')
-rw-r--r--3rdparty/bgfx/examples/02-metaballs/metaballs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/02-metaballs/metaballs.cpp b/3rdparty/bgfx/examples/02-metaballs/metaballs.cpp
index 882b18b59b0..e40142cb7c3 100644
--- a/3rdparty/bgfx/examples/02-metaballs/metaballs.cpp
+++ b/3rdparty/bgfx/examples/02-metaballs/metaballs.cpp
@@ -549,7 +549,7 @@ class ExampleMetaballs : 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.
@@ -595,7 +595,7 @@ class ExampleMetaballs : 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) );
}
// Stats.