Skip to content

Commit

Permalink
No longer set the RL_TEXTURE_FILTER_LINEAR when high dpi flag is enab…
Browse files Browse the repository at this point in the history
…led. (#4189)
  • Loading branch information
SoloByte authored Jul 27, 2024
1 parent efce4d6 commit e5a1fc4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,15 +668,7 @@ void InitWindow(int width, int height, const char *title)
SetShapesTexture(texture, (Rectangle){ 0.0f, 0.0f, 1.0f, 1.0f }); // WARNING: Module required: rshapes
#endif
#endif
#if defined(SUPPORT_MODULE_RTEXT) && defined(SUPPORT_DEFAULT_FONT)
if ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0)
{
// Set default font texture filter for HighDPI (blurry)
// RL_TEXTURE_FILTER_LINEAR - tex filter: BILINEAR, no mipmaps
rlTextureParameters(GetFontDefault().texture.id, RL_TEXTURE_MIN_FILTER, RL_TEXTURE_FILTER_LINEAR);
rlTextureParameters(GetFontDefault().texture.id, RL_TEXTURE_MAG_FILTER, RL_TEXTURE_FILTER_LINEAR);
}
#endif


CORE.Time.frameCounter = 0;
CORE.Window.shouldClose = false;
Expand Down

0 comments on commit e5a1fc4

Please sign in to comment.