1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-27 13:55:19 +01:00

Print filenames in irrlicht png warnings (#14525)

Makes warnings like this more informative:
`WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile`
This commit is contained in:
DS
2024-04-07 22:06:13 +02:00
committed by GitHub
parent 7e4462e0ac
commit 1d673ce075
5 changed files with 25 additions and 8 deletions

View File

@@ -1704,7 +1704,7 @@ bool ImageSource::generateImagePart(std::string_view part_of_name,
auto *device = RenderingEngine::get_raw_device();
auto *fs = device->getFileSystem();
auto *vd = device->getVideoDriver();
auto *memfile = fs->createMemoryReadFile(png.data(), png.size(), "__temp_png");
auto *memfile = fs->createMemoryReadFile(png.data(), png.size(), "[png_tmpfile");
video::IImage* pngimg = vd->createImageFromFile(memfile);
memfile->drop();