Skip to content

Commit b1b0bfe

Browse files
committed
Only init required SDL subsystems
1 parent c1627fd commit b1b0bfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sdlengine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct SDLEngine
88
{
99
SDLEngine()
1010
{
11-
if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
11+
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
1212
throw std::runtime_error("SDL_Init");
1313
}
1414
if (SDL_ShowCursor(SDL_DISABLE) < 0) {

0 commit comments

Comments
 (0)