Don't draw 0 thickness triangles

This commit is contained in:
Andrei Zavatski 2022-11-29 02:36:27 +03:00
parent 61bfd2f6b2
commit ba1717c2ca

View File

@ -256,7 +256,7 @@ namespace osu.Game.Graphics.Backgrounds
{ {
base.Draw(renderer); base.Draw(renderer);
if (Source.AimCount == 0) if (Source.AimCount == 0 || thickness == 0)
return; return;
if (vertexBatch == null || vertexBatch.Size != Source.AimCount) if (vertexBatch == null || vertexBatch.Size != Source.AimCount)