From 4cc0d8e77745570bd8b9c10cce271a2f3ade19d5 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Mon, 23 Jun 2014 07:59:09 +0100 Subject: [PATCH] Added setViewRect inside nanovg. --- examples/18-ibl/ibl.cpp | 1 - examples/common/nanovg/nanovg_bgfx.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/18-ibl/ibl.cpp b/examples/18-ibl/ibl.cpp index 2bad36fe..bdb7dd65 100644 --- a/examples/18-ibl/ibl.cpp +++ b/examples/18-ibl/ibl.cpp @@ -723,7 +723,6 @@ int _main_(int /*_argc*/, char** /*_argv*/) bgfx::setViewRect(0, 0, 0, width, height); bgfx::setViewRect(1, 0, 0, width, height); - bgfx::setViewRect(NANOVG_VIEWID, 0, 0, width, height); // View 0. bgfx::setTexture(4, u_texCube, lightProbes[currentLightProbe].m_tex); diff --git a/examples/common/nanovg/nanovg_bgfx.cpp b/examples/common/nanovg/nanovg_bgfx.cpp index 11df1ab9..e90d121f 100644 --- a/examples/common/nanovg/nanovg_bgfx.cpp +++ b/examples/common/nanovg/nanovg_bgfx.cpp @@ -511,6 +511,7 @@ namespace NVG_NOTUSED(alphaBlend); gl->view[0] = (float)width; gl->view[1] = (float)height; + bgfx::setViewRect(gl->viewid, 0, 0, width, height); } static void fan(uint32_t _start, uint32_t _count)