Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
truongsinh authored Jul 9, 2019
1 parent 1d2146b commit bc965f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nima.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(<double>[
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit bc965f5

Please sign in to comment.