Merge pull request #105 from dariomanesku/master
Added setViewRect inside nanovg.
This commit is contained in:
commit
654ad11495
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user