浏览代码

js bugfix (close #1159)

Nicolas Cannasse 2 年之前
父节点
当前提交
2d0afff0f0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/BufferFormat.hx

+ 1 - 1
hxd/BufferFormat.hx

@@ -118,7 +118,7 @@ class BufferFormat {
 
 
 	function new( inputs : Array<BufferInput> ) {
 	function new( inputs : Array<BufferInput> ) {
 		uid = _UID++;
 		uid = _UID++;
-		stride = 0;
+		stride = strideBytes = 0;
 		this.inputs = inputs.copy();
 		this.inputs = inputs.copy();
 		hasLowPrecision = false;
 		hasLowPrecision = false;
 		for( i in inputs ) {
 		for( i in inputs ) {