From 1423a161a4d589aad169a57971d023380b78fbd0 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 28 Mar 2016 17:23:20 +0200 Subject: [PATCH] source/Graphics/Font.cpp: resizeTexture() take pixelformat from current texture. --- source/Graphics/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }