From 24c37e6eca8be3409f33820635b03b5190934d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 8 Jun 2026 22:38:02 -0700 Subject: [PATCH] Fixed debugdraw drawFrustum near plane under non-homogeneous NDC. Closes #1299. (#3746) --- examples/common/debugdraw/debugdraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] = {