From fb7fd32f249c2210d012b2af7489989285a11cdb Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sat, 27 Apr 2013 18:47:18 -0700 Subject: [PATCH] Run all samples with vsync on by default. --- examples/00-helloworld/helloworld.cpp | 2 +- examples/01-cubes/cubes.cpp | 2 +- examples/02-metaballs/metaballs.cpp | 2 +- examples/03-raymarch/raymarch.cpp | 2 +- examples/04-mesh/mesh.cpp | 2 +- examples/05-instancing/instancing.cpp | 2 +- examples/06-bump/bump.cpp | 2 +- examples/08-update/update.cpp | 2 +- examples/09-hdr/hdr.cpp | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/00-helloworld/helloworld.cpp b/examples/00-helloworld/helloworld.cpp index c210a341b..238a7be84 100644 --- a/examples/00-helloworld/helloworld.cpp +++ b/examples/00-helloworld/helloworld.cpp @@ -14,7 +14,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height); diff --git a/examples/01-cubes/cubes.cpp b/examples/01-cubes/cubes.cpp index 7a7883413..a50318d13 100644 --- a/examples/01-cubes/cubes.cpp +++ b/examples/01-cubes/cubes.cpp @@ -99,7 +99,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height); diff --git a/examples/02-metaballs/metaballs.cpp b/examples/02-metaballs/metaballs.cpp index 2d1ff7c7c..325a51f19 100644 --- a/examples/02-metaballs/metaballs.cpp +++ b/examples/02-metaballs/metaballs.cpp @@ -499,7 +499,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height); diff --git a/examples/03-raymarch/raymarch.cpp b/examples/03-raymarch/raymarch.cpp index 927c4e442..3731b5403 100644 --- a/examples/03-raymarch/raymarch.cpp +++ b/examples/03-raymarch/raymarch.cpp @@ -178,7 +178,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height); diff --git a/examples/04-mesh/mesh.cpp b/examples/04-mesh/mesh.cpp index e4b4aa5ca..2e9418f96 100644 --- a/examples/04-mesh/mesh.cpp +++ b/examples/04-mesh/mesh.cpp @@ -283,7 +283,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height); diff --git a/examples/05-instancing/instancing.cpp b/examples/05-instancing/instancing.cpp index 16daffeb8..39b7bb740 100644 --- a/examples/05-instancing/instancing.cpp +++ b/examples/05-instancing/instancing.cpp @@ -99,7 +99,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height); diff --git a/examples/06-bump/bump.cpp b/examples/06-bump/bump.cpp index d77e9a1a7..f3fe9fa3b 100644 --- a/examples/06-bump/bump.cpp +++ b/examples/06-bump/bump.cpp @@ -255,7 +255,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height); diff --git a/examples/08-update/update.cpp b/examples/08-update/update.cpp index a6ec145e0..33e338139 100644 --- a/examples/08-update/update.cpp +++ b/examples/08-update/update.cpp @@ -130,7 +130,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height); diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp index 17496498b..55ee14e27 100644 --- a/examples/09-hdr/hdr.cpp +++ b/examples/09-hdr/hdr.cpp @@ -410,7 +410,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; - uint32_t reset = BGFX_RESET_NONE; + uint32_t reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(width, height);