diff --git a/source/Graphics/Font.cpp b/source/Graphics/Font.cpp index ec20ba3..13568f1 100644 --- a/source/Graphics/Font.cpp +++ b/source/Graphics/Font.cpp @@ -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); }