Fixing projection matrix in examples.

This commit is contained in:
Branimir Karadžić
2017-02-22 22:26:39 -08:00
parent 2e3bdc619e
commit d96225a1f0
20 changed files with 23 additions and 23 deletions

View File

@@ -190,7 +190,7 @@ class ExampleOcclusion : public entry::AppI
else
{
float proj[16];
bx::mtxProj(proj, 90.0f, float(width)/float(height), 0.1f, 10000.0f);
bx::mtxProj(proj, 90.0f, float(width)/float(height), 0.1f, 10000.0f, bgfx::getCaps()->homogeneousDepth);
bgfx::setViewTransform(0, view, proj);
bgfx::setViewRect(0, 0, 0, width, height);