mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Improve texture creation logging and checking
This commit is contained in:
parent
ae97435d80
commit
b1cb5fcb9f
6 changed files with 37 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue