summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/01-cubes/cubes.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/01-cubes/cubes.cpp')
-rw-r--r--3rdparty/bgfx/examples/01-cubes/cubes.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/01-cubes/cubes.cpp b/3rdparty/bgfx/examples/01-cubes/cubes.cpp
index d3679d1ea48..4025975b0ee 100644
--- a/3rdparty/bgfx/examples/01-cubes/cubes.cpp
+++ b/3rdparty/bgfx/examples/01-cubes/cubes.cpp
@@ -57,14 +57,16 @@ static const uint16_t s_cubeIndices[36] =
class Cubes : public entry::AppI
{
- void init(int /*_argc*/, char** /*_argv*/) BX_OVERRIDE
+ void init(int _argc, char** _argv) BX_OVERRIDE
{
+ Args args(_argc, _argv);
+
m_width = 1280;
m_height = 720;
m_debug = BGFX_DEBUG_TEXT;
m_reset = BGFX_RESET_VSYNC;
- bgfx::init();
+ bgfx::init(args.m_type, args.m_pciId);
bgfx::reset(m_width, m_height, m_reset);
// Enable debug text.