Browse Source

Allow any init flags to be passed to SDLTest_CommonCreateState()

Sam Lantinga 6 tháng trước cách đây
mục cha
commit
b16ad6f10f
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  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;
 }