Преглед изворни кода

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());
 			}
 		}