SDL_test: support SDL_INIT_CAMERA for SDL_CommonInit and SDL_CommonQuit
This commit is contained in:
parent
26ffbe43c2
commit
ecfbb6719f
1 changed files with 7 additions and 0 deletions
|
@ -1567,6 +1567,10 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state->flags & SDL_INIT_CAMERA) {
|
||||||
|
SDL_InitSubSystem(SDL_INIT_CAMERA);
|
||||||
|
}
|
||||||
|
|
||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2562,6 +2566,9 @@ void SDLTest_CommonQuit(SDLTest_CommonState *state)
|
||||||
}
|
}
|
||||||
SDL_free(state->windows);
|
SDL_free(state->windows);
|
||||||
}
|
}
|
||||||
|
if (state->flags & SDL_INIT_CAMERA) {
|
||||||
|
SDL_QuitSubSystem(SDL_INIT_CAMERA);
|
||||||
|
}
|
||||||
if (state->flags & SDL_INIT_VIDEO) {
|
if (state->flags & SDL_INIT_VIDEO) {
|
||||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue