Browse Source

fix when only array texture and no base texture

Nicolas Cannasse 4 years ago
parent
commit
f1f83644ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/pass/Default.hx

+ 1 - 1
h3d/pass/Default.hx

@@ -71,7 +71,7 @@ class Default extends Base {
 			p.shader = manager.compileShaders(shaders, p.pass.batchMode);
 			p.shaders = shaders;
 			var t = p.shader.fragment.textures;
-			if( t == null )
+			if( t == null || t.type.match(TArray(_)) )
 				p.texture = 0;
 			else {
 				var t : h3d.mat.Texture = manager.getParamValue(t, shaders, true);