2
0
Эх сурвалжийг харах

Allow any init flags to be passed to SDLTest_CommonCreateState()

Sam Lantinga 2 сар өмнө
parent
commit
b16ad6f10f

+ 1 - 3
src/test/SDL_test_common.c

@@ -1523,9 +1523,7 @@ bool SDLTest_CommonInit(SDLTest_CommonState *state)
         }
     }
 
-    if (state->flags & SDL_INIT_CAMERA) {
-        SDL_InitSubSystem(SDL_INIT_CAMERA);
-    }
+    SDL_InitSubSystem(state->flags);
 
     return true;
 }