1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-16 01:45:36 +02:00

Handle texture filtering sanely to avoid blurriness (#16034)

This commit is contained in:
sfan5
2025-04-21 12:31:44 +02:00
committed by GitHub
parent 1c5776d13a
commit 4c4e296274
8 changed files with 70 additions and 65 deletions

View File

@@ -99,3 +99,9 @@
#define SCREENSHOT_MAX_SERIAL_TRIES 1000
#define TTF_DEFAULT_FONT_SIZE (16)
// Minimum texture size enforced/checked for enabling linear filtering
// This serves as the minimum for `texture_min_size`.
// The intent is to ensure that the rendering doesn't turn terribly blurry
// when filtering is enabled.
#define TEXTURE_FILTER_MIN_SIZE 192U