diff options
Diffstat (limited to '3rdparty/bgfx/examples/10-font/font.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/10-font/font.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/3rdparty/bgfx/examples/10-font/font.cpp b/3rdparty/bgfx/examples/10-font/font.cpp index 016e12fb79e..c7baf00782c 100644 --- a/3rdparty/bgfx/examples/10-font/font.cpp +++ b/3rdparty/bgfx/examples/10-font/font.cpp @@ -17,7 +17,6 @@ #include <iconfontheaders/icons_font_awesome.h> #include <iconfontheaders/icons_kenney.h> -#include <stdio.h> #include <wchar.h> TrueTypeHandle loadTtf(FontManager* _fm, const char* _filePath) @@ -216,7 +215,7 @@ int _main_(int _argc, char** _argv) if (NULL != hmd && 0 != (hmd->flags & BGFX_HMD_RENDERING) ) { float proj[16]; - bx::mtxProj(proj, hmd->eye[0].fov, 0.1f, 100.0f); + bx::mtxProj(proj, hmd->eye[0].fov, 0.1f, 100.0f, bgfx::getCaps()->homogeneousDepth); static float time = 0.0f; time += 0.05f; @@ -235,7 +234,7 @@ int _main_(int _argc, char** _argv) else { float ortho[16]; - bx::mtxOrtho(ortho, centering, width + centering, height + centering, centering, -1.0f, 1.0f); + bx::mtxOrtho(ortho, centering, width + centering, height + centering, centering, -1.0f, 1.0f, bgfx::getCaps()->homogeneousDepth); bgfx::setViewTransform(0, view, ortho); bgfx::setViewRect(0, 0, 0, uint16_t(width), uint16_t(height) ); } |