mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Fix assertion when trying to draw a line with one point. This would trigger an ensure if one enabled the unitmotion overlay.
Patch by: @vladislavbelov This was SVN commit r27016.
This commit is contained in:
@@ -78,6 +78,9 @@ void CDebugRenderer::DrawLine(
|
||||
const std::vector<CVector3D>& line, const CColor& color,
|
||||
const float width, const bool depthTestEnabled)
|
||||
{
|
||||
if (line.size() <= 1)
|
||||
return;
|
||||
|
||||
CShaderTechniquePtr debugLineTech =
|
||||
g_Renderer.GetShaderManager().LoadEffect(str_debug_line);
|
||||
Renderer::Backend::IDeviceCommandContext* deviceCommandContext =
|
||||
|
||||
Reference in New Issue
Block a user