From bc965f52b60d7903dc7693dbe3a8037088c2a03b Mon Sep 17 00:00:00 2001 From: TruongSinh Tran-Nguyen Date: Tue, 9 Jul 2019 13:13:32 +0700 Subject: [PATCH] Fix https://github.com/2d-inc/Flare-Flutter/issues/75 Fix similar to https://github.com/2d-inc/Flare-Flutter/issues/75 --- lib/nima.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nima.dart b/lib/nima.dart index 7cd2d2a..cb99702 100644 --- a/lib/nima.dart +++ b/lib/nima.dart @@ -17,7 +17,7 @@ class FlutterActorImage extends ActorImage { Float32List _uvBuffer; ui.Paint _paint; ui.Vertices _canvasVertices; - Int32List _indices; + Uint16List _indices; DrawCallback onDraw; final Float64List _identityMatrix = Float64List.fromList([ @@ -63,7 +63,7 @@ class FlutterActorImage extends ActorImage { _vertexBuffer = makeVertexPositionBuffer(); _uvBuffer = makeVertexUVBuffer(); _indices = - Int32List.fromList(triangles); // nima runtime loads 16 bit indices + Uint16List.fromList(triangles); // nima runtime loads 16 bit indices updateVertexUVBuffer(_uvBuffer); int count = vertexCount; int idx = 0;