Add missing sdl init
This commit is contained in:
@@ -13,7 +13,7 @@ namespace td {
|
||||
|
||||
Display::Display(int a_Width, int a_Height, const std::string& a_Title) :
|
||||
m_LastWidth(0), m_LastHeight(0), m_AspectRatio(1), m_ShouldClose(false) {
|
||||
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
m_Window = SDL_CreateWindow(a_Title.c_str(), a_Width, a_Height, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);
|
||||
|
||||
m_LastWidth = a_Width;
|
||||
|
||||
Reference in New Issue
Block a user