Kaynağa Gözat

Allow any init flags to be passed to SDLTest_CommonCreateState()

Sam Lantinga 6 ay önce
ebeveyn
işleme
b16ad6f10f
1 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  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;
 }