Don't perform a filter mode change if the new mode is the same as the previous one.

This commit is contained in:
MaikelChan committed 2024-08-05 16:33:55 +02:00
1 parent 897020b3fd
commit a4b5b110ec
1 file changed
+1
+1
View File
@@ -218,6 +218,7 @@ void videoSetMaximizeWindow(s32 fs)
void videoSetTextureFilter(u32 filter)
{
if (filter > FILTER_THREE_POINT) filter = FILTER_THREE_POINT;
if (texFilter == filter) return;
texFilter = filter;
gfx_set_texture_filter((enum FilteringMode)filter);
}