Removing use of setView*Mask API.

This commit is contained in:
Branimir Karadžić
2014-09-27 11:31:04 -07:00
parent c659e70bdc
commit fc371fc24c
6 changed files with 32 additions and 66 deletions

View File

@@ -196,7 +196,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
while (!entry::processEvents(width, height, debug, reset) )
{
// Set view 0 and 1 viewport.
bgfx::setViewRectMask(0x3, 0, 0, width, height);
bgfx::setViewRect(0, 0, 0, width, height);
bgfx::setViewRect(1, 0, 0, width, 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.