From eb6d7444fbfad5dc0698da5b4bc4351d25e9966a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 14 Sep 2015 19:54:22 -0700 Subject: [PATCH] Cleanup. --- examples/21-deferred/deferred.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/21-deferred/deferred.cpp b/examples/21-deferred/deferred.cpp index 7aae64fe..8bd68c44 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);