mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-28 12:41:25 +08:00
Formatting
This commit is contained in:
parent
ce632884dc
commit
cc982db033
@ -248,16 +248,17 @@ public class SkeletonRenderer {
|
|||||||
RenderCommand command = commands.get(i);
|
RenderCommand command = commands.get(i);
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= 29) {
|
if (Build.VERSION.SDK_INT >= 29) {
|
||||||
canvas.drawVertices(Canvas.VertexMode.TRIANGLES, command.vertices.size, command.vertices.items, 0, command.uvs.items, 0,
|
canvas.drawVertices(Canvas.VertexMode.TRIANGLES, command.vertices.size, command.vertices.items, 0, command.uvs.items,
|
||||||
command.colors.items, 0, command.indices.items, 0, command.indices.size, command.texture.getPaint(command.blendMode));
|
0, command.colors.items, 0, command.indices.items, 0, command.indices.size,
|
||||||
|
command.texture.getPaint(command.blendMode));
|
||||||
} else {
|
} else {
|
||||||
// See https://github.com/EsotericSoftware/spine-runtimes/issues/2638
|
// See https://github.com/EsotericSoftware/spine-runtimes/issues/2638
|
||||||
int[] colors = command.colors.items;
|
int[] colors = command.colors.items;
|
||||||
int[] colorsCopy = new int[command.vertices.size];
|
int[] colorsCopy = new int[command.vertices.size];
|
||||||
System.arraycopy(colors, 0, colorsCopy, 0, command.colors.size);
|
System.arraycopy(colors, 0, colorsCopy, 0, command.colors.size);
|
||||||
|
|
||||||
canvas.drawVertices(Canvas.VertexMode.TRIANGLES, command.vertices.size, command.vertices.items, 0, command.uvs.items, 0,
|
canvas.drawVertices(Canvas.VertexMode.TRIANGLES, command.vertices.size, command.vertices.items, 0, command.uvs.items,
|
||||||
colorsCopy, 0, command.indices.items, 0, command.indices.size, command.texture.getPaint(command.blendMode));
|
0, colorsCopy, 0, command.indices.items, 0, command.indices.size, command.texture.getPaint(command.blendMode));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user