WINTERMUTE: Avoid touching SDL_Quit in-engine

This commit is contained in:
Einar Johan Trøan Sømåen 2012-05-09 13:59:30 +02:00 committed by Einar Johan Trøan Sømåen
parent 3a3304e324
commit cb06258124

View File

@ -54,13 +54,13 @@ CBRenderSDL::~CBRenderSDL() {
#if 0
if (_renderer) SDL_DestroyRenderer(_renderer);
if (_win) SDL_DestroyWindow(_win);
#endif
SDL_Quit();
#endif
}
//////////////////////////////////////////////////////////////////////////
HRESULT CBRenderSDL::InitRenderer(int width, int height, bool windowed) {
if (SDL_Init(SDL_INIT_VIDEO) < 0) return E_FAIL;
//if (SDL_Init(SDL_INIT_VIDEO) < 0) return E_FAIL;
#if 0
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);