Browse Source

fix for directx

Nicolas Cannasse 4 years ago
parent
commit
75cb9688fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hrt/prefab/l3d/HeightMap.hx

+ 1 - 1
hrt/prefab/l3d/HeightMap.hx

@@ -618,7 +618,7 @@ class HeightMap extends Object3D {
 			}
 			}
 			indexes.push(idx);
 			indexes.push(idx);
 		}
 		}
-		var tex = new h3d.mat.TextureArray(layers[0].width, layers[0].height, layers.length, null, switch( layers[0].format ) {
+		var tex = new h3d.mat.TextureArray(layers[0].width, layers[0].height, layers.length, [Target], switch( layers[0].format ) {
 		case S3TC(_): RGBA;
 		case S3TC(_): RGBA;
 		case fmt: fmt;
 		case fmt: fmt;
 		});
 		});