2
0
Nicolas Cannasse 7 жил өмнө
parent
commit
f56d932ca6
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      hxsl/GlslOut.hx

+ 3 - 2
hxsl/GlslOut.hx

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