small code simplification

This commit is contained in:
Raf committed 2025-12-04 18:55:52 +08:00
1 parent c303c81f88
commit 2d390ae5ce
1 file changed
+2 -3
+2 -3
View File
@@ -1975,9 +1975,8 @@ void updateMaxAnisotropyLevel()
for (int i = 0; i < ARRAYCOUNT(g_ExtendedVideoMenuItems); ++i) {
struct menuitem *item = &g_ExtendedVideoMenuItems[i];
const char *text = menuResolveParam2Text(item);
if (text == NULL) continue;
if (strstr(text, "Anisotropic Filtering") != NULL) {
if (text && strstr(text, "Anisotropic Filtering") != NULL) {
item->param3 = videoGetMaxAnisotropyLevel();
break;
}