From 44e9a0e5c393dfa73cd6990c8049c11a25b5ae5c Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 29 Oct 2020 15:43:33 +0100 Subject: [PATCH] [xna] Fixes #1782, wrong indexing of debug polygon vertices in renderer. --- spine-xna/src/ShapeRenderer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spine-xna/src/ShapeRenderer.cs b/spine-xna/src/ShapeRenderer.cs index 604b7172c..08258fd2b 100644 --- a/spine-xna/src/ShapeRenderer.cs +++ b/spine-xna/src/ShapeRenderer.cs @@ -119,13 +119,12 @@ namespace Spine { if (count< 3) throw new ArgumentException("Polygon must contain at least 3 vertices"); offset <<= 1; - count <<= 1; var firstX = polygonVertices[offset]; var firstY = polygonVertices[offset + 1]; var last = offset + count; - for (int i = offset, n = offset + count - 2; i