mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Remove or restrict some client settings (#15633)
This commit is contained in:
parent
41f7031e49
commit
e5542e5b02
11 changed files with 48 additions and 128 deletions
|
@ -94,8 +94,7 @@ video::ITexture *guiScalingResizeCached(video::IVideoDriver *driver,
|
|||
auto it_img = g_imgCache.find(origname);
|
||||
video::IImage *srcimg = (it_img != g_imgCache.end()) ? it_img->second : nullptr;
|
||||
if (!srcimg) {
|
||||
if (!g_settings->getBool("gui_scaling_filter_txr2img"))
|
||||
return src;
|
||||
// Download image from GPU
|
||||
srcimg = driver->createImageFromData(src->getColorFormat(),
|
||||
src->getSize(), src->lock(video::ETLM_READ_ONLY), false);
|
||||
src->unlock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue