Commit 5828cc415a0e4bde9dd27f57dd963925a84c3b4e

Sylvain 2021-03-16T21:54:27

Update METAL backend: fix a typo in drawline

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/metal/SDL_render_metal.m b/src/render/metal/SDL_render_metal.m
index 6de1684..dc61997 100644
--- a/src/render/metal/SDL_render_metal.m
+++ b/src/render/metal/SDL_render_metal.m
@@ -1142,7 +1142,7 @@ METAL_QueueDrawLines(SDL_Renderer * renderer, SDL_RenderCommand *cmd, const SDL_
        angles. Maybe !!! FIXME for later, though. */
 
     points -= 2;  /* update the last line. */
-    verts -= (count * 2) - 2;
+    verts -= 2 + 4;
 
     const float xstart = points[0].x;
     const float ystart = points[0].y;