瀏覽代碼

fix / haxe SVN

ncannasse 12 年之前
父節點
當前提交
19283b1bcf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/impl/Macros.hx

+ 1 - 1
h3d/impl/Macros.hx

@@ -162,7 +162,7 @@ class Macros {
 		var v = try c.compile(v) catch( e : format.hxsl.Data.Error ) haxe.macro.Context.error(e.message, e.pos);
 
 		var c = new format.agal.Compiler();
-		c.error = Context.error;
+		c.error = function(msg, p) { Context.error(msg, p); return null; }
 
 		var vscode = c.compile(v.vertex);
 		var fscode = c.compile(v.fragment);