浏览代码

fix haxe 3.x

Nicolas Cannasse 7 年之前
父节点
当前提交
f56d932ca6
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      hxsl/GlslOut.hx

+ 3 - 2
hxsl/GlslOut.hx

@@ -239,8 +239,8 @@ class GlslOut {
 			case TSamplerCube:
 				if( isES2 )
 					return "textureCube";
-			case var t:
-				throw "Unsupported "+t;
+			default:
+				throw "assert";
 			}
 		case TextureLod:
 			switch( args[0].t ) {
@@ -262,6 +262,7 @@ class GlslOut {
 					return "textureCubeLodEXT";
 				}
 			default:
+				throw "assert";
 			}
 		case Mod if( rt == TInt && isES ):
 			decl("int _imod( int x, int y ) { return int(mod(float(x),float(y))); }");