浏览代码

Turn .get() texture in compute error into warning

clementlandrin 1 年之前
父节点
当前提交
714aec0162
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxsl/Checker.hx

+ 1 - 1
hxsl/Checker.hx

@@ -1039,7 +1039,7 @@ class Checker {
 			}
 			if( gl != null ) {
 				if( f == "get" && inWhile ) error("Cannot use .get() in while loop, use .getLod instead", pos);
-				if( f == "get" && inCompute ) error("Cannot use .get() in a compute shader, use .getLod instead", pos);
+				if( f == "get" && inCompute ) warning("Cannot use .get() in a compute shader, use .getLod instead", pos);
 				g = globals.get(gl.toString());
 			}
 		}