2
0
Эх сурвалжийг харах

Remove legacy assert in mesh batch

clementlandrin 1 жил өмнө
parent
commit
940ef0e7ed

+ 2 - 3
h3d/scene/MeshBatch.hx

@@ -181,8 +181,6 @@ class MeshBatch extends MultiMaterial {
 							curPos += fmt[i].getBytesSize() >> 2;
 					}
 					b.bufferFormat = hxd.BufferFormat.make(fmt);
-					if( b.bufferFormat.stride & 3 != 0 )
-						throw "assert";
 				}
 
 				b.next = dataPasses;
@@ -471,8 +469,9 @@ class MeshBatch extends MultiMaterial {
 			// check that the pass is still enable
 			var material = materials[p.matIndex];
 			if( material != null && material.getPass(pass.name) != null ) {
-				for( i in 0...p.buffers.length )
+				for( i in 0...p.buffers.length ) {
 					ctx.emitPass(pass, this).index = i | (p.matIndex << 16);
+				}
 			}
 			p = p.next;
 		}