mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- do not set use type on font texture if it is used as a sprite
Setting texture use type in this case would break actors that use the corresponding sprite https://forum.zdoom.org/viewtopic.php?t=65509
This commit is contained in:
parent
ff4bc8bab9
commit
c05ef39718
1 changed files with 4 additions and 1 deletions
|
@ -102,7 +102,10 @@ FSpecialFont::FSpecialFont (const char *name, int first, int count, FTexture **l
|
|||
|
||||
if (charlumps[i] != nullptr)
|
||||
{
|
||||
charlumps[i]->SetUseType(ETextureType::FontChar);
|
||||
// If texture is used as a sprite, do not set use type
|
||||
// Changing it would break actors that use this sprite
|
||||
if (charlumps[i]->GetUseType() != ETextureType::Sprite)
|
||||
charlumps[i]->SetUseType(ETextureType::FontChar);
|
||||
|
||||
Chars[i].OriginalPic = charlumps[i];
|
||||
if (!noTranslate)
|
||||
|
|
Loading…
Reference in a new issue