From dea2bad0c4f6a5d0b180a3ff0eccb19f7bfcd191 Mon Sep 17 00:00:00 2001 From: Botch <31988415+BotchMC@users.noreply.github.com> Date: Mon, 13 Apr 2026 00:46:32 -0500 Subject: [PATCH] fix: Disable font mipmapping (#1410) --- Minecraft.Client/Font.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Minecraft.Client/Font.cpp b/Minecraft.Client/Font.cpp index 6e0bc7e4..735a0c2e 100644 --- a/Minecraft.Client/Font.cpp +++ b/Minecraft.Client/Font.cpp @@ -404,6 +404,8 @@ void Font::draw(const wstring &str, bool dropShadow, int initialColor) t->begin(); t->color(currentColor & 0x00ffffff, (currentColor >> 24) & 255); + bool prev = t->setMipmapEnable(false); // Disable mipmapping for fonts, and save previous enabled value to be restored later - Botch + for (int i = 0; i < static_cast(cleanStr.length()); ++i) { // Map character @@ -481,6 +483,8 @@ void Font::draw(const wstring &str, bool dropShadow, int initialColor) } } + t->setMipmapEnable(prev); //Reinstates previously used enabled value - Botch + t->end(); }