From 6d948697cf4fcca72e5282d2d2b81ed013a87a38 Mon Sep 17 00:00:00 2001 From: badlogic Date: Mon, 30 Jan 2017 17:14:16 +0100 Subject: [PATCH] [libgdx] Fixed TWoColorPolygonBatch, wrong number of components specified for dark color vertex attribute. Can't do 3 components in libGDX for packed color, we send a 4 byte float --- .../com/esotericsoftware/spine/utils/TwoColorPolygonBatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/utils/TwoColorPolygonBatch.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/utils/TwoColorPolygonBatch.java index f05a93b5f..bdea26bac 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/utils/TwoColorPolygonBatch.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/utils/TwoColorPolygonBatch.java @@ -69,7 +69,7 @@ public class TwoColorPolygonBatch { mesh = new Mesh(vertexDataType, false, maxVertices, maxTriangles * 3, // new VertexAttribute(Usage.Position, 2, "a_position"), // new VertexAttribute(Usage.ColorPacked, 4, "a_light"), // - new VertexAttribute(Usage.ColorPacked, 3, "a_dark"), // + new VertexAttribute(Usage.ColorPacked, 4, "a_dark"), // new VertexAttribute(Usage.TextureCoordinates, 2, "a_texCoord0")); vertices = new float[maxVertices * 6];