Nicolas Cannasse 7 gadi atpakaļ
vecāks
revīzija
f56d932ca6
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  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))); }");