From db24203b8ab5c1701b5500078168010048246189 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 30 Jun 2026 08:42:47 +0200 Subject: [PATCH] Minor adjustment to #4165 --- Source/Engine/Debug/DebugDraw.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Debug/DebugDraw.cpp b/Source/Engine/Debug/DebugDraw.cpp index d025448b1..1699626aa 100644 --- a/Source/Engine/Debug/DebugDraw.cpp +++ b/Source/Engine/Debug/DebugDraw.cpp @@ -1550,6 +1550,8 @@ void DebugDraw::DrawPoint(const Vector3& position, float radius, const Color& co // Build a filled disc as a triangle fan from the center over the transformed unit circle points PROFILE_MEM(EngineDebug); + auto& debugDrawData = depthTest ? Context->DebugDrawDepthTest : Context->DebugDrawDefault; + auto& debugDrawList = duration > 0 ? debugDrawData.DefaultTriangles : debugDrawData.OneFrameTriangles; for (int32 i = 0; i < DEBUG_DRAW_CIRCLE_VERTICES; i += 2) { DebugTriangle t; @@ -1558,7 +1560,7 @@ void DebugDraw::DrawPoint(const Vector3& position, float radius, const Color& co t.V0 = positionF; t.V1 = Float3::Transform(CircleCache[i], matrix); t.V2 = Float3::Transform(CircleCache[i + 1], matrix); - (depthTest ? Context->DebugDrawDepthTest : Context->DebugDrawDefault).Add(t); + debugDrawList.Add(t); } }