Merge pull request #26580 from Chaosus/iccp_spam_fix

Silences annoying "iCCP: known incorrect sRGB profile" spam in the editor
This commit is contained in:
Rémi Verschelde 2019-03-04 13:48:48 +01:00 committed by GitHub
commit cba6811427
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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