Ver Fonte

Allow any init flags to be passed to SDLTest_CommonCreateState()

Sam Lantinga há 4 meses atrás
pai
commit
b16ad6f10f
1 ficheiros alterados com 1 adições e 3 exclusões
  1. 1 3
      src/test/SDL_test_common.c

+ 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;
     return true;
 }
 }