SDL: testlocale: only ininitialize video when needed

From b1a0bc3fb0ad2198500cbddc2e8c73d8ec39de31 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 19 Jul 2023 00:14:38 +0200
Subject: [PATCH] testlocale: only ininitialize video when needed

---
 test/testlocale.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/testlocale.c b/test/testlocale.c
index 65a82df3d24a..d0c3239767b3 100644
--- a/test/testlocale.c
+++ b/test/testlocale.c
@@ -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) {