浏览代码

fixed vertex shader inference

ncannasse 7 年之前
父节点
当前提交
fcf8fc3e8e
共有 1 个文件被更改,包括 6 次插入2 次删除
  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++;