Skip to content

Commit e5a1fc4

Browse files
authored
No longer set the RL_TEXTURE_FILTER_LINEAR when high dpi flag is enabled. (#4189)
1 parent efce4d6 commit e5a1fc4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/rcore.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -668,15 +668,7 @@ void InitWindow(int width, int height, const char *title)
668668
SetShapesTexture(texture, (Rectangle){ 0.0f, 0.0f, 1.0f, 1.0f }); // WARNING: Module required: rshapes
669669
#endif
670670
#endif
671-
#if defined(SUPPORT_MODULE_RTEXT) && defined(SUPPORT_DEFAULT_FONT)
672-
if ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0)
673-
{
674-
// Set default font texture filter for HighDPI (blurry)
675-
// RL_TEXTURE_FILTER_LINEAR - tex filter: BILINEAR, no mipmaps
676-
rlTextureParameters(GetFontDefault().texture.id, RL_TEXTURE_MIN_FILTER, RL_TEXTURE_FILTER_LINEAR);
677-
rlTextureParameters(GetFontDefault().texture.id, RL_TEXTURE_MAG_FILTER, RL_TEXTURE_FILTER_LINEAR);
678-
}
679-
#endif
671+
680672

681673
CORE.Time.frameCounter = 0;
682674
CORE.Window.shouldClose = false;

0 commit comments

Comments
 (0)