Added vsync by default to font examples.
This commit is contained in:
parent
4319f8f1df
commit
9c0b5be6d7
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user