Added vsync by default to font examples.

This commit is contained in:
bkaradzic 2013-05-17 08:45:12 -07:00
parent 4319f8f1df
commit 9c0b5be6d7
2 changed files with 4 additions and 4 deletions

View file

@ -29,11 +29,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
uint32_t width = 1280;
uint32_t height = 720;
uint32_t debug = BGFX_DEBUG_TEXT;
uint32_t reset = 0;
uint32_t reset = BGFX_RESET_VSYNC;
bgfx::init();
bgfx::reset(width, height);
bgfx::reset(width, height, reset);
// Enable debug text.
bgfx::setDebug(debug);

View file

@ -37,11 +37,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
uint32_t width = 1280;
uint32_t height = 720;
uint32_t debug = BGFX_DEBUG_TEXT;
uint32_t reset = 0;
uint32_t reset = BGFX_RESET_VSYNC;
bgfx::init();
bgfx::reset(width, height);
bgfx::reset(width, height, reset);
// Enable debug text.
bgfx::setDebug(debug);