Browse Source

fixed vertex shader inference

ncannasse 7 năm trước cách đây
mục cha
commit
fcf8fc3e8e
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      hxsl/Linker.hx

+ 6 - 2
hxsl/Linker.hx

@@ -247,8 +247,12 @@ class Linker {
 				continue;
 			if( !parent.write.exists(v.id) )
 				continue;
-			if( s.vertex && parent.vertex == false )
-				continue;
+			if( s.vertex ) {
+				if( parent.vertex == false )
+					continue;
+				if( parent.vertex == null )
+					parent.vertex = true;
+			}
 			debug(s.name + " => " + parent.name + " (" + v.path + ")");
 			s.deps.set(parent, true);
 			debugDepth++;