mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Enable cleanTransparent filter for mipmapping and improve its' algorithm (#11145)
This commit is contained in:
parent
90a7bd6a0a
commit
1da73418cd
6 changed files with 105 additions and 32 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue