source/Graphics/Font.cpp: resizeTexture() take pixelformat from current texture.
This commit is contained in:
parent
0a2012b611
commit
1423a161a4
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ void Font::resizeTexture() const
|
|||
Image tmpImg = m_texture.copyToImage();
|
||||
|
||||
// recreate texture.
|
||||
m_texture.create(m_texture.getSize().x, nextSize, PixelFormat::PF_Alpha);
|
||||
m_texture.create(m_texture.getSize().x, nextSize, tmpImg.getFormat());
|
||||
m_texture.update(vec2u(0, 0), tmpImg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue