Browse Source

Fix iterations on buffer uploadFloats

clementlandrin 9 months ago
parent
commit
2fb634fd16
1 changed files with 2 additions and 1 deletions
  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;