mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-28 22:25:20 +01:00
Some minor code cleanups
This commit is contained in:
@@ -200,9 +200,13 @@ namespace gui
|
||||
//! Updates the texture atlas with new glyphs.
|
||||
void updateTexture()
|
||||
{
|
||||
if (!dirty) return;
|
||||
if (!dirty)
|
||||
return;
|
||||
|
||||
void* ptr = texture->lock();
|
||||
if (!ptr)
|
||||
return;
|
||||
|
||||
video::ECOLOR_FORMAT format = texture->getColorFormat();
|
||||
core::dimension2du size = texture->getOriginalSize();
|
||||
video::IImage* pageholder = driver->createImageFromData(format, size, ptr, true, false);
|
||||
|
||||
Reference in New Issue
Block a user