Explorar el Código

Fix iterations on buffer uploadFloats

clementlandrin hace 7 meses
padre
commit
2fb634fd16
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      h3d/Buffer.hx

+ 2 - 1
h3d/Buffer.hx

@@ -76,7 +76,8 @@ class Buffer {
 			var index : Int = bufPos;
 
 			var inputs = format.getInputs();
-			for ( i in 0...vertices ) {
+			for ( _ in 0...vertices ) {
+				@:privateAccess inputs.current = 0;
 				for ( input in inputs ) {
 					var elementCount = input.type.getSize();
 					var step = 0;