summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/04-mesh/mesh.cpp
diff options
context:
space:
mode:
author Branimir Karadzic <branimirkaradzic@gmail.com>2015-11-01 20:30:24 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-11-01 20:30:24 +0100
commit5664971d3bf57ad7e1a7a3138f788f714c0d7d74 (patch)
treef64fdaa35a890c4c7052f5fd173b3d0d3668a4ed /3rdparty/bgfx/examples/04-mesh/mesh.cpp
parent99c12e17c40fecb16e1ef0dc2fae0d45a86def59 (diff)
update to latest BGFX and BX
Diffstat (limited to '3rdparty/bgfx/examples/04-mesh/mesh.cpp')
-rw-r--r--3rdparty/bgfx/examples/04-mesh/mesh.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/04-mesh/mesh.cpp b/3rdparty/bgfx/examples/04-mesh/mesh.cpp
index bf4c4269333..8c10b2b36d3 100644
--- a/3rdparty/bgfx/examples/04-mesh/mesh.cpp
+++ b/3rdparty/bgfx/examples/04-mesh/mesh.cpp
@@ -6,14 +6,16 @@
#include "common.h"
#include "bgfx_utils.h"
-int _main_(int /*_argc*/, char** /*_argv*/)
+int _main_(int _argc, char** _argv)
{
+ Args args(_argc, _argv);
+
uint32_t width = 1280;
uint32_t height = 720;
uint32_t debug = BGFX_DEBUG_TEXT;
uint32_t reset = BGFX_RESET_VSYNC;
- bgfx::init();
+ bgfx::init(args.m_type, args.m_pciId);
bgfx::reset(width, height, reset);
// Enable debug text.