Browse Source

bufix selectMultiBuffers

Nicolas Cannasse 2 years ago
parent
commit
b3daaf7351
1 changed files with 4 additions and 0 deletions
  1. 4 0
      h3d/impl/DirectXDriver.hx

+ 4 - 0
h3d/impl/DirectXDriver.hx

@@ -1206,6 +1206,10 @@ class DirectXDriver extends h3d.impl.Driver {
 			layout = makeLayout(formats.resolveMapping(currentShader.format));
 			currentShader.layouts.set(-formats.uid-1, layout);
 		}
+		if( layout != currentLayout ) {
+			dx.Driver.iaSetInputLayout(layout);
+			currentLayout = layout;
+		}
 		var map = formats.resolveMapping(currentShader.format);
 		var start = -1, max = -1, force = false;
 		for( i in 0...map.length ) {