[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

This commit is contained in:
badlogic 2017-01-30 17:14:16 +01:00
parent 25fb5b1bff
commit 6d948697cf

View File

@ -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];