summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/24-nbody/nbody.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/24-nbody/nbody.cpp')
-rw-r--r--3rdparty/bgfx/examples/24-nbody/nbody.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/3rdparty/bgfx/examples/24-nbody/nbody.cpp b/3rdparty/bgfx/examples/24-nbody/nbody.cpp
index 79f722f962e..f04766a5823 100644
--- a/3rdparty/bgfx/examples/24-nbody/nbody.cpp
+++ b/3rdparty/bgfx/examples/24-nbody/nbody.cpp
@@ -305,11 +305,7 @@ int _main_(int _argc, char** _argv)
float tmp[16];
bx::mtxMul(tmp, view, viewHead);
-
- float proj[16];
- bx::mtxProj(proj, hmd->eye[0].fov, 0.1f, 10000.0f);
-
- bgfx::setViewTransform(0, tmp, proj);
+ bgfx::setViewTransform(0, tmp, hmd->eye[0].projection);
// Set view 0 default viewport.
//