diff options
author | sfan5 <sfan5@live.de> | 2021-04-20 19:50:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 19:50:19 +0200 |
commit | 1da73418cd2ea0e03e8289f54a47dededcf8b331 (patch) | |
tree | 384bd9f7680f9444fc8c6f95c56400f0f22487bb /src/client/minimap.cpp | |
parent | 90a7bd6a0afb6509e96bcb373f95b448ee7f3b1d (diff) | |
download | minetest-1da73418cd2ea0e03e8289f54a47dededcf8b331.tar.gz minetest-1da73418cd2ea0e03e8289f54a47dededcf8b331.tar.bz2 minetest-1da73418cd2ea0e03e8289f54a47dededcf8b331.zip |
Enable cleanTransparent filter for mipmapping and improve its' algorithm (#11145)
Diffstat (limited to 'src/client/minimap.cpp')
-rw-r--r-- | src/client/minimap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/minimap.cpp b/src/client/minimap.cpp index dd810ee0a..97977c366 100644 --- a/src/client/minimap.cpp +++ b/src/client/minimap.cpp @@ -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(); |