mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02: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:
@@ -799,7 +799,7 @@ bool Client::loadMedia(const std::string &data, const std::string &filename,
|
||||
video::IVideoDriver *vdrv = m_rendering_engine->get_video_driver();
|
||||
|
||||
io::IReadFile *rfile = irrfs->createMemoryReadFile(
|
||||
data.c_str(), data.size(), "_tempreadfile");
|
||||
data.c_str(), data.size(), filename.c_str());
|
||||
|
||||
FATAL_ERROR_IF(!rfile, "Could not create irrlicht memory file.");
|
||||
|
||||
|
Reference in New Issue
Block a user