1
0
Fork 0
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:
sfan5 2025-01-08 10:56:45 +01:00 committed by GitHub
parent 41f7031e49
commit e5542e5b02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 48 additions and 128 deletions

View file

@ -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();