diff options
author | Chaosus <chaosus89@gmail.com> | 2019-03-04 15:28:21 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2019-03-04 15:28:21 +0300 |
commit | 4655eb9b8bd480e5e8a16982d75115de8f6a8d48 (patch) | |
tree | 3d08c06a5c264a52c8f0209d430eb032086c2391 /drivers/png | |
parent | 49d82f245bf11bd9064c9de24704cbec2181b5ba (diff) |
Silences annoying "iCCP: known incorrect sRGB profile" spam
Diffstat (limited to 'drivers/png')
-rw-r--r-- | drivers/png/image_loader_png.cpp | 6 |
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); } |