Add missing sdl init

This commit is contained in:
2025-08-13 21:06:02 +00:00
parent 953b5dcc86
commit 5f1e9a8d81

View File

@@ -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;