only init the necessary with SDL, speeding up the startup
This commit is contained in:
parent
8c165974c7
commit
0da1e413aa
@ -341,7 +341,7 @@ ERR_PACK_MANIFEST_PATH_ALLOC_FAIL:
|
||||
|
||||
|
||||
static bool initialize(void) {
|
||||
if (SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_HAPTIC) == -1) {
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_EVENTS) == -1) {
|
||||
CRY_SDL("SDL initialization failed.");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user