testlocale: only ininitialize video when needed

main
Anonymous Maarten 2023-07-19 00:14:38 +02:00
parent 4ca0e937e1
commit b1a0bc3fb0
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ int main(int argc, char **argv)
if (SDL_strcmp(argv[1], "--listen") == 0) {
listen = 1;
consumed = 1;
state->flags |= SDL_INIT_VIDEO;
}
}
if (consumed <= 0) {