mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Merge branch 'fontainofdreams' into 'master'
Some checks are pending
Build and test / Ubuntu (push) Waiting to run
Build and test / MacOS (push) Waiting to run
Build and test / Read .env file and expose it as output (push) Waiting to run
Build and test / Windows (2019) (push) Blocked by required conditions
Build and test / Windows (2022) (push) Blocked by required conditions
Some checks are pending
Build and test / Ubuntu (push) Waiting to run
Build and test / MacOS (push) Waiting to run
Build and test / Read .env file and expose it as output (push) Waiting to run
Build and test / Windows (2019) (push) Blocked by required conditions
Build and test / Windows (2022) (push) Blocked by required conditions
Allow bitmap font texture reading to end prematurely (#8378) See merge request OpenMW/openmw!4564
This commit is contained in:
commit
888415059c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue