From 36d29c27fd7ca862c3641451a38389fb3779747f Mon Sep 17 00:00:00 2001 From: attilaz Date: Thu, 24 Jan 2019 19:28:56 +0100 Subject: [PATCH] fixed msvc warnings --- examples/08-update/update.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/08-update/update.cpp b/examples/08-update/update.cpp index 354772f31..093f9b66c 100644 --- a/examples/08-update/update.cpp +++ b/examples/08-update/update.cpp @@ -313,7 +313,7 @@ public: for (uint32_t ii = 0; ii < BX_COUNTOF(m_textureCubeFaceFb); ++ii) { bgfx::Attachment at; - at.init(m_textureCube[3], bgfx::Access::Write, ii); + at.init(m_textureCube[3], bgfx::Access::Write, uint16_t(ii)); m_textureCubeFaceFb[ii] = bgfx::createFrameBuffer(1, &at); } } @@ -540,7 +540,7 @@ public: for (uint32_t ii = 0; ii < BX_COUNTOF(m_textureCubeFaceFb); ++ii) { - bgfx::ViewId viewId = ii+2; + bgfx::ViewId viewId = bgfx::ViewId(ii+2); bgfx::setViewFrameBuffer(viewId, m_textureCubeFaceFb[ii]); bx::Vec3 color = bx::add(s_faceColors[ii], bx::sin(time*4.0f)*0.25f);