Browse Source

fix compilation error

bstouls 10 years ago
parent
commit
4b0a4c0c87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxsl/Checker.hx

+ 1 - 1
hxsl/Checker.hx

@@ -557,7 +557,7 @@ class Checker {
 			}
 			loop(e);
 			var sexpr = null;
-			try sexpr = loadShader(path.join(".")) catch( err : Dynamic ) error(Std.string(err), e.pos);
+			try sexpr = loadShader(path.join(".")) catch( err : haxe.macro.Expr.Error ) throw err catch( err : Dynamic ) error(Std.string(err), e.pos);
 			if( sexpr != null )
 				checkExpr(sexpr, funs, true, isExtends);
 		case ECall( { expr : EIdent("extends") }, [e]):