summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/07-callback/callback.cpp
diff options
context:
space:
mode:
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();
}