mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
small code simplification
This commit is contained in:
1 parent
c303c81f88
commit
2d390ae5ce
1 file changed
+2
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user