summaryrefslogtreecommitdiff
path: root/ui/mainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/mainWindow.cpp')
-rw-r--r--ui/mainWindow.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/mainWindow.cpp b/ui/mainWindow.cpp
index 73c0b5b..8d46d43 100644
--- a/ui/mainWindow.cpp
+++ b/ui/mainWindow.cpp
@@ -8,12 +8,7 @@
#include "backends/imgui_impl_sdl2.h"
#pragma GCC diagnostic pop
-MainWindow::MainWindow(size_t w, size_t h) :
- MainWindow {w, h, "I Like Trains", SDL_WINDOW_RESIZABLE | SDL_WINDOW_OPENGL}
-{
-}
-
-MainWindow::MainWindow(size_t w, size_t h, const std::string & title, Uint32 flags) : Window {w, h, title, flags}
+MainWindow::MainWindow(size_t w, size_t h, const char * title, Uint32 flags) : Window {w, h, title, flags}
{
if (const auto version = gladLoadGL(reinterpret_cast<GLADloadfunc>(SDL_GL_GetProcAddress)); version < 30003) {
throw std::runtime_error {std::format("Insufficient OpenGL version: {}", version)};