Commit 09231c42ea9c6ca2d6cfddb75418f678f6a0a0a7

Alex Szpakowski 2021-02-15T11:51:00

Fix flags check in test code

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index f592869..b574c2b 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -1106,7 +1106,7 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
 
             if (!state->skip_renderer
                 && (state->renderdriver
-                    || !(state->window_flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_VULKAN)))) {
+                    || !(state->window_flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_VULKAN | SDL_WINDOW_METAL)))) {
                 m = -1;
                 if (state->renderdriver) {
                     SDL_RendererInfo info;