Latest version of Lime/OpenFl are throwing “Bad ByteArray” error if empty array is passed:
var indices:Array = [];
var arrayBuffer = new Int16Array(indices);
GL.bufferData(GL.ELEMENT_ARRAY_BUFFER, arrayBuffer, GL.STATIC_DRAW);
If indices is not empty it works. But this was not the case with previous versions of Lime/OpenFl. Also, it works fine on
web target.