Skip to content

Commit

Permalink
Removed SDL video/timer init as unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 6, 2012
1 parent 548088c commit 972a71d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/engine/portable/src/window.cpp
Expand Up @@ -703,6 +703,7 @@ boolean Sys_InitWindowManager(void)

CanvasWindow::setDefaultGLFormat();

/*
#ifdef UNIX
// Initialize the SDL video subsystem, unless we're going to run in
// dedicated mode.
Expand All @@ -711,6 +712,7 @@ boolean Sys_InitWindowManager(void)
SDL_InitSubSystem(SDL_INIT_VIDEO); // used for gamma
}
#endif
*/

memset(&mainWindow, 0, sizeof(mainWindow));
winManagerInited = true;
Expand Down
3 changes: 3 additions & 0 deletions doomsday/engine/unix/src/dd_uinit.c
Expand Up @@ -216,8 +216,11 @@ static boolean unloadAllPlugins(application_t* app)

static int initTimingSystem(void)
{
/*
// For timing, we use SDL under *nix, so get it initialized. SDL_Init() returns zero on success.
return !SDL_Init(SDL_INIT_TIMER | SDL_INIT_NOPARACHUTE);
*/
return true;
}

static int initPluginSystem(void)
Expand Down

0 comments on commit 972a71d

Please sign in to comment.