Bläddra i källkod

Turn .get() texture in compute error into warning

clementlandrin 1 år sedan
förälder
incheckning
714aec0162
1 ändrade filer med 1 tillägg och 1 borttagningar
  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());
 			}
 		}