From e09c96de84d0080bf535da272e0aff8c6b703f72 Mon Sep 17 00:00:00 2001 From: attilaz Date: Wed, 28 Jun 2017 02:43:07 +0200 Subject: [PATCH] 16-shadowmaps fixed when used with combined examples (#1182) --- examples/16-shadowmaps/shadowmaps.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/16-shadowmaps/shadowmaps.cpp b/examples/16-shadowmaps/shadowmaps.cpp index 427db8811..d25c9e0a7 100644 --- a/examples/16-shadowmaps/shadowmaps.cpp +++ b/examples/16-shadowmaps/shadowmaps.cpp @@ -1296,7 +1296,9 @@ public: m_debug = BGFX_DEBUG_NONE; m_reset = BGFX_RESET_VSYNC; - m_viewState = ViewState(1280, 720); + m_width = 1280; + m_height = 720; + m_viewState = ViewState(uint16_t(m_width), uint16_t(m_height)); m_clearValues = ClearValues(0x00000000, 1.0f, 0); bgfx::init(args.m_type, args.m_pciId);