1
0
mirror of https://github.com/minetest/minetest.git synced 2025-09-18 03:15:20 +02:00

Improve texture creation logging and checking

This commit is contained in:
sfan5
2025-08-08 13:42:36 +02:00
committed by GitHub
parent ae97435d80
commit b1cb5fcb9f
6 changed files with 37 additions and 19 deletions

View File

@@ -131,7 +131,7 @@ bool TextureBuffer::ensureTexture(video::ITexture **texture, const TextureDefini
if (definition.valid) {
if (!m_driver->queryTextureFormat(definition.format)) {
errorstream << "Failed to create texture \"" << definition.name
<< "\": unsupported format " << video::ColorFormatNames[definition.format]
<< "\": unsupported format " << video::ColorFormatName(definition.format)
<< std::endl;
return false;
}