mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-13 08:58:35 +00:00
Allow bitmap font texture to end prematurely
This commit is contained in:
parent
a6676fd6f3
commit
24468fd965
@ -425,7 +425,8 @@ namespace Gui
|
||||
textureData.resize(width * height * 4);
|
||||
bitmapFile->read(textureData.data(), width * height * 4);
|
||||
if (!bitmapFile->good())
|
||||
fail(*bitmapFile, bitmapFilename, "File too small to be a valid bitmap");
|
||||
Log(Debug::Warning) << "Font bitmap " << bitmapFilename << " ended prematurely, using partial data ("
|
||||
<< bitmapFile->gcount() << "/" << (width * height * 4) << " bytes)";
|
||||
bitmapFile.reset();
|
||||
|
||||
MyGUI::ITexture* tex = MyGUI::RenderManager::getInstance().createTexture(bitmapFilename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user