SDL: SDL_test: support SDL_INIT_CAMERA for SDL_CommonInit and SDL_CommonQuit

From ecfbb6719f4812d29e2f3d86ce3c3d6e1d67518e Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 21 Feb 2024 00:04:41 +0100
Subject: [PATCH] SDL_test: support SDL_INIT_CAMERA for SDL_CommonInit and
 SDL_CommonQuit

---
 src/test/SDL_test_common.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index 4b2502e2b246..40c59e85023c 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -1567,6 +1567,10 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
         }
     }
 
+    if (state->flags & SDL_INIT_CAMERA) {
+        SDL_InitSubSystem(SDL_INIT_CAMERA);
+    }
+
     return SDL_TRUE;
 }
 
@@ -2562,6 +2566,9 @@ void SDLTest_CommonQuit(SDLTest_CommonState *state)
         }
         SDL_free(state->windows);
     }
+    if (state->flags & SDL_INIT_CAMERA) {
+        SDL_QuitSubSystem(SDL_INIT_CAMERA);
+    }
     if (state->flags & SDL_INIT_VIDEO) {
         SDL_QuitSubSystem(SDL_INIT_VIDEO);
     }