From 49f7c99c7786ce257fae28dfeae2f8ee5810424c Mon Sep 17 00:00:00 2001 From: Branimir Karadžić Date: Wed, 29 Mar 2017 17:09:40 +0200 Subject: Update BGFX and BX (nw) --- 3rdparty/bgfx/examples/07-callback/callback.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '3rdparty/bgfx/examples/07-callback/callback.cpp') diff --git a/3rdparty/bgfx/examples/07-callback/callback.cpp b/3rdparty/bgfx/examples/07-callback/callback.cpp index 9b2305e81c0..464e2e55e7d 100644 --- a/3rdparty/bgfx/examples/07-callback/callback.cpp +++ b/3rdparty/bgfx/examples/07-callback/callback.cpp @@ -403,7 +403,7 @@ int _main_(int _argc, char** _argv) float view[16]; float proj[16]; bx::mtxLookAt(view, eye, at); - bx::mtxProj(proj, 60.0f, float(width)/float(height), 0.1f, 100.0f); + bx::mtxProj(proj, 60.0f, float(width)/float(height), 0.1f, 100.0f, bgfx::getCaps()->homogeneousDepth); // Set view and projection matrix for view 0. bgfx::setViewTransform(0, view, proj); @@ -439,7 +439,8 @@ int _main_(int _argc, char** _argv) // Take screen shot at frame 150. if (150 == frame) { - bgfx::saveScreenShot("temp/frame150"); + bgfx::FrameBufferHandle fbh = BGFX_INVALID_HANDLE; + bgfx::requestScreenShot(fbh, "temp/frame150"); } // Advance to next frame. Rendering thread will be kicked to -- cgit v1.2.3-70-g09d2