Browse Source

fix for haxe 3.x

Nicolas Cannasse 7 years ago
parent
commit
de804f3ca1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      h3d/pass/Default.hx

+ 2 - 2
h3d/pass/Default.hx

@@ -117,9 +117,9 @@ class Default extends Base {
 		var p = passes;
 		var p = passes;
 		var shaderStart = shaderCount, textureStart = textureCount;
 		var shaderStart = shaderCount, textureStart = textureCount;
 		while( p != null ) {
 		while( p != null ) {
-			if( shaderIdMap[p.shader.id] < shaderStart #if !static || shaderIdMap[p.shader.id] == null #end )
+			if( shaderIdMap[p.shader.id] < shaderStart #if js || shaderIdMap[p.shader.id] == null #end )
 				shaderIdMap[p.shader.id] = shaderCount++;
 				shaderIdMap[p.shader.id] = shaderCount++;
-			if( textureIdMap[p.texture] < textureStart #if !static || textureIdMap[p.shader.id] == null #end )
+			if( textureIdMap[p.texture] < textureStart #if js || textureIdMap[p.shader.id] == null #end )
 				textureIdMap[p.texture] = textureCount++;
 				textureIdMap[p.texture] = textureCount++;
 			p = p.next;
 			p = p.next;
 		}
 		}