Skip to content

Commit

Permalink
Silences annoying "iCCP: known incorrect sRGB profile" spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosus committed Mar 4, 2019
1 parent 49d82f2 commit 4655eb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/png/image_loader_png.cpp
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 4655eb9

Please sign in to comment.