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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user