mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +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
|
@ -102,7 +102,7 @@ video::ITexture *guiScalingResizeCached(video::IVideoDriver *driver,
|
|||
if (!g_settings->getBool("gui_scaling_filter_txr2img"))
|
||||
return src;
|
||||
srcimg = driver->createImageFromData(src->getColorFormat(),
|
||||
src->getSize(), src->lock(), false);
|
||||
src->getSize(), src->lock(video::ETLM_READ_ONLY), false);
|
||||
src->unlock();
|
||||
g_imgCache[origname] = srcimg;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue