summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/07-callback/callback.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-03-30 14:36:33 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-03-30 14:36:33 +0200
commitfadbc9808c682c1c9cc7af89a35d2e4fa3faa6dc (patch)
tree1ca878aa70cf67e6419b283cafc1ae6515b377ef /3rdparty/bgfx/examples/07-callback/callback.cpp
parent86ac81dd3399acb04e99a4ddcd3acc5a622aa4ec (diff)
Updated to latest 3rdparty (nw)
Diffstat (limited to '3rdparty/bgfx/examples/07-callback/callback.cpp')
-rw-r--r--3rdparty/bgfx/examples/07-callback/callback.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/07-callback/callback.cpp b/3rdparty/bgfx/examples/07-callback/callback.cpp
index 3e4480912d0..3caec753fed 100644
--- a/3rdparty/bgfx/examples/07-callback/callback.cpp
+++ b/3rdparty/bgfx/examples/07-callback/callback.cpp
@@ -372,6 +372,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
bgfx::init(
renderers[bx::getHPCounter() % numRenderers] /* randomize renderer */
+ , BGFX_PCI_ID_NONE
+ , 0
, &callback // custom callback handler
, &allocator // custom allocator
);
@@ -442,7 +444,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
float at[3] = { 0.0f, 0.0f, 0.0f };
float eye[3] = { 0.0f, 0.0f, -35.0f };
-
+
float view[16];
float proj[16];
bx::mtxLookAt(view, eye, at);
@@ -488,7 +490,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
bgfx::saveScreenShot("temp/frame150");
}
- // Advance to next frame. Rendering thread will be kicked to
+ // Advance to next frame. Rendering thread will be kicked to
// process submitted rendering primitives.
bgfx::frame();
}