소스 검색

Merge pull request #26580 from Chaosus/iccp_spam_fix

Silences annoying "iCCP: known incorrect sRGB profile" spam in the editor
Rémi Verschelde 6 년 전
부모
커밋
cba6811427
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      drivers/png/image_loader_png.cpp

+ 5 - 1
drivers/png/image_loader_png.cpp

@@ -63,7 +63,11 @@ static void _png_error_function(png_structp, png_const_charp text) {
 }
 
 static void _png_warn_function(png_structp, png_const_charp text) {
-
+#ifdef TOOLS_ENABLED
+	if (Engine::get_singleton()->is_editor_hint()) {
+		if (String(text).begins_with("iCCP")) return; // silences annoying spam emitted to output every time the user opened assetlib
+	}
+#endif
 	WARN_PRINT(text);
 }