summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-01-29 11:59:09 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-01-29 11:59:09 +0100
commiteb53653dfcbbe325cee93368dd6585d68e41f43a (patch)
tree7b5647a5d1cc1f6849b1bf8314c64d9b81f529ef
parent578ad89703ef74539e74edc86f865064763882fb (diff)
Calling win32_gl_init() from Application on windows.
-rw-r--r--application.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/application.cpp b/application.cpp
index 8cd9e9d..97a014f 100644
--- a/application.cpp
+++ b/application.cpp
@@ -1,4 +1,5 @@
#include "application.h"
+#include "gl.h"
#include <SFML/Graphics/RenderWindow.hpp>
@@ -8,6 +9,10 @@ extern const sf::Input* input_backend;
sf::RenderWindow *renderwindow;
Application::Application() {
+ #ifdef WIN32
+ win32_gl_init();
+ #endif
+
please_quit = false;
}