summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/26-occlusion/occlusion.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/26-occlusion/occlusion.cpp')
-rw-r--r--3rdparty/bgfx/examples/26-occlusion/occlusion.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/3rdparty/bgfx/examples/26-occlusion/occlusion.cpp b/3rdparty/bgfx/examples/26-occlusion/occlusion.cpp
index 81e00f0c5fe..8f03686ede1 100644
--- a/3rdparty/bgfx/examples/26-occlusion/occlusion.cpp
+++ b/3rdparty/bgfx/examples/26-occlusion/occlusion.cpp
@@ -181,13 +181,10 @@ class ExampleOcclusion : public entry::AppI
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);
bgfx::setViewRect(0, 0, 0, hmd->width, hmd->height);
- bgfx::setViewTransform(1, tmp, proj);
+ bgfx::setViewTransform(1, tmp, hmd->eye[1].projection);
bgfx::setViewRect(1, 0, 0, hmd->width, hmd->height);
}
else