From 409f7ed1339ab48a5c7b3e04508f9d21ead0ec87 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Thu, 22 Mar 2018 12:03:26 +0100 Subject: [PATCH] [libgdx] Delegate to the specific batch rendering methods. --- .../src/com/esotericsoftware/spine/SkeletonRenderer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java index 34642d98a..25ea2fc44 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java @@ -62,6 +62,14 @@ public class SkeletonRenderer { private final Color temp6 = new Color(); public void draw (Batch batch, Skeleton skeleton) { + if (batch instanceof PolygonSpriteBatch) { + draw((PolygonSpriteBatch)batch, skeleton); + return; + } else if (batch instanceof TwoColorPolygonBatch) { + draw((TwoColorPolygonBatch)batch, skeleton); + return; + } + VertexEffect vertexEffect = this.vertexEffect; if (vertexEffect != null) vertexEffect.begin(skeleton);