summaryrefslogtreecommitdiff
path: root/drivers/png
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-03-04 13:48:48 +0100
committerGitHub <noreply@github.com>2019-03-04 13:48:48 +0100
commitcba68114276fce41491a9ebb33fabf62193eeeba (patch)
tree90557fab4d6b592c1a3bbcda01e1322600b07f39 /drivers/png
parent2bc981948d254f45a0268cfc26eb0010f00b984c (diff)
parent4655eb9b8bd480e5e8a16982d75115de8f6a8d48 (diff)
Merge pull request #26580 from Chaosus/iccp_spam_fix
Silences annoying "iCCP: known incorrect sRGB profile" spam in the editor
Diffstat (limited to 'drivers/png')
-rw-r--r--drivers/png/image_loader_png.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/png/image_loader_png.cpp b/drivers/png/image_loader_png.cpp
index 6d8185cdd8..0bf432c78a 100644
--- a/drivers/png/image_loader_png.cpp
+++ b/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);
}