1
0
Fork 0

source/Graphics/Font.cpp: resizeTexture() take pixelformat from current texture.

This commit is contained in:
Henrik Hautakoski 2016-03-28 17:23:20 +02:00
parent 0a2012b611
commit 1423a161a4

View file

@ -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);
}