mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Silences annoying "iCCP: known incorrect sRGB profile" spam
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user