1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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