mirror of
https://github.com/edubart/otclient.git
synced 2025-10-22 15:25:54 +02:00
cache rendering of UILabel
This commit is contained in:
@@ -42,6 +42,9 @@ FrameBuffer::~FrameBuffer()
|
||||
|
||||
void FrameBuffer::resize(const Size& size)
|
||||
{
|
||||
if(m_texture && m_texture->getSize() == size)
|
||||
return;
|
||||
|
||||
internalBind();
|
||||
m_texture = TexturePtr(new Texture(size.width(), size.height(), 4));
|
||||
m_texture->setSmooth(true);
|
||||
|
Reference in New Issue
Block a user