소스 검색

Allow any init flags to be passed to SDLTest_CommonCreateState()

Sam Lantinga 6 달 전
부모
커밋
b16ad6f10f
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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;
 }