summaryrefslogtreecommitdiff
path: root/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application.cpp')
-rw-r--r--application.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/application.cpp b/application.cpp
index 97a014f..dc43e7e 100644
--- a/application.cpp
+++ b/application.cpp
@@ -9,10 +9,6 @@ extern const sf::Input* input_backend;
sf::RenderWindow *renderwindow;
Application::Application() {
- #ifdef WIN32
- win32_gl_init();
- #endif
-
please_quit = false;
}
@@ -30,6 +26,10 @@ void Application::init_window(unsigned int w, unsigned int h, bool fs, const std
window = renderwindow;
create_window(w, h, fs, title);
+ #ifdef WIN32
+ win32_gl_init();
+ #endif
+
input_backend = &window->GetInput();
window_title = title;