Fix Drawable's use of m4 for TWGL 4.x

The `create` method of `m4` has disappeared; call `identity` instead.
This commit is contained in:
Christopher Willis-Ford 2018-01-10 18:22:57 -08:00
parent bf042c2362
commit a38c74c2c1

View File

@ -51,7 +51,7 @@ class Drawable {
this._scale = twgl.v3.create(100, 100);
this._direction = 90;
this._transformDirty = true;
this._inverseMatrix = twgl.m4.create();
this._inverseMatrix = twgl.m4.identity();
this._inverseTransformDirty = true;
this._visible = true;
this._effectBits = 0;