diff --git a/away3d/core/managers/RTTBufferManager.hx b/away3d/core/managers/RTTBufferManager.hx index 83c7b430..09e69181 100644 --- a/away3d/core/managers/RTTBufferManager.hx +++ b/away3d/core/managers/RTTBufferManager.hx @@ -212,7 +212,8 @@ class RTTBufferManager extends EventDispatcher if (_indexBuffer == null) { _indexBuffer = _stage3DProxy.createIndexBuffer(6); - var v:Vector = Vector.ofArray([2, 1, 0, 3, 2, 0]); + var a:Array = [2, 1, 0, 3, 2, 0]; + var v:Vector = Vector.ofArray(a); _indexBuffer.uploadFromVector(v, 0, 6); } diff --git a/away3d/core/render/BackgroundImageRenderer.hx b/away3d/core/render/BackgroundImageRenderer.hx index ef4806e4..10cdc636 100644 --- a/away3d/core/render/BackgroundImageRenderer.hx +++ b/away3d/core/render/BackgroundImageRenderer.hx @@ -116,7 +116,8 @@ class BackgroundImageRenderer _vertexBuffer = _stage3DProxy.createVertexBuffer(4, 4); _program3d = context.createProgram(); _indexBuffer = _stage3DProxy.createIndexBuffer(6); - var v:Vector = Vector.ofArray([ 2, 1, 0, 3, 2, 0 ]); + var a:Array = [ 2, 1, 0, 3, 2, 0 ]; + var v:Vector = Vector.ofArray(a); _indexBuffer.uploadFromVector(v, 0, 6); _program3d.upload(new AGALMiniAssembler(Debug.active).assemble(Context3DProgramType.VERTEX, getVertexCode()), new AGALMiniAssembler(Debug.active).assemble(Context3DProgramType.FRAGMENT, getFragmentCode())