diff --git a/examples/common/debugdraw/debugdraw.cpp b/examples/common/debugdraw/debugdraw.cpp index 9a4d79e72..c7f34c944 100644 --- a/examples/common/debugdraw/debugdraw.cpp +++ b/examples/common/debugdraw/debugdraw.cpp @@ -1650,7 +1650,7 @@ struct DebugDrawEncoderImpl void drawFrustum(const float* _viewProj) { bx::Plane planes[6] = { bx::InitNone, bx::InitNone, bx::InitNone, bx::InitNone, bx::InitNone, bx::InitNone }; - buildFrustumPlanes(planes, _viewProj); + buildFrustumPlanes(planes, _viewProj, bgfx::getCaps()->homogeneousDepth); const bx::Vec3 points[8] = {