mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Enable cleanTransparent filter for mipmapping and improve its' algorithm (#11145)
This commit is contained in:
@@ -491,7 +491,8 @@ video::ITexture *Minimap::getMinimapTexture()
|
||||
// Want to use texture source, to : 1 find texture, 2 cache it
|
||||
video::ITexture* texture = m_tsrc->getTexture(data->mode.texture);
|
||||
video::IImage* image = driver->createImageFromData(
|
||||
texture->getColorFormat(), texture->getSize(), texture->lock(), true, false);
|
||||
texture->getColorFormat(), texture->getSize(),
|
||||
texture->lock(video::ETLM_READ_ONLY), true, false);
|
||||
texture->unlock();
|
||||
|
||||
auto dim = image->getDimension();
|
||||
|
Reference in New Issue
Block a user