Skip to content

Commit

Permalink
Moved SDL_Quit() to appropriate place
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jul 24, 2018
1 parent d52f88d commit aa6dbbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/xrEngine/Device_destroy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ void CRenderDevice::Destroy()
seqDeviceReset.Clear();
seqParallel.clear();
xr_delete(Statistic);

SDL_DestroyWindow(m_sdlWnd);
SDL_Quit();
}

#include "IGame_Level.h"
Expand Down
4 changes: 0 additions & 4 deletions src/xrEngine/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,6 @@ void CRenderDevice::message_loop()
break;
}
break;
case SDL_QUIT:
SDL_DestroyWindow(m_sdlWnd);
SDL_Quit();
break;
default: SDL_Log("Window event %d to %d,%d", event.type, event.window.data1, event.window.data2); break;
}
}
Expand Down

0 comments on commit aa6dbbb

Please sign in to comment.