Selaa lähdekoodia

Allow any init flags to be passed to SDLTest_CommonCreateState()

Sam Lantinga 2 kuukautta sitten
vanhempi
sitoutus
b16ad6f10f
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  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;
 }
 }