diff --git a/examples/21-deferred/deferred.cpp b/examples/21-deferred/deferred.cpp index 7aae64fe6..8bd68c44f 100644 --- a/examples/21-deferred/deferred.cpp +++ b/examples/21-deferred/deferred.cpp @@ -18,11 +18,6 @@ static float s_texelHalf = 0.0f; static bool s_originBottomLeft = false; -inline void mtxProj(float* _result, float _fovy, float _aspect, float _near, float _far) -{ - bx::mtxProj(_result, _fovy, _aspect, _near, _far, s_originBottomLeft); -} - struct PosNormalTangentTexcoordVertex { float m_x; @@ -504,7 +499,7 @@ class Deferred : public entry::AppI bgfx::setViewFrameBuffer(RENDER_PASS_LIGHT_ID, m_lightBuffer); float proj[16]; - mtxProj(proj, 60.0f, float(m_width)/float(m_height), 0.1f, 100.0f); + bx::mtxProj(proj, 60.0f, float(m_width)/float(m_height), 0.1f, 100.0f, s_originBottomLeft); bgfx::setViewFrameBuffer(RENDER_PASS_GEOMETRY_ID, m_gbuffer); bgfx::setViewTransform(RENDER_PASS_GEOMETRY_ID, view, proj);