diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-18 13:11:12 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-18 13:11:12 +0000 |
commit | 141975cfd22b21403383ea5213cb85ef5427fc9e (patch) | |
tree | 6a9acf54dc1b3b95d873b48d5d292f72e6cdcf07 /src/gui/gui.cpp | |
parent | b0867dde000892f1aab803bf7d06a51d799baf43 (diff) | |
download | mana-141975cfd22b21403383ea5213cb85ef5427fc9e.tar.gz mana-141975cfd22b21403383ea5213cb85ef5427fc9e.tar.bz2 mana-141975cfd22b21403383ea5213cb85ef5427fc9e.tar.xz mana-141975cfd22b21403383ea5213cb85ef5427fc9e.zip |
Semi-separated OpenGL and SDL graphics classes, improving OpenGL performance.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 5f37e566..612ca7a1 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -69,10 +69,10 @@ Gui::Gui(Graphics *graphics): mMouseCursor(NULL), mCustomCursor(false) { + // Set graphics + setGraphics(graphics); #ifdef USE_OPENGL if (config.getValue("opengl", 0)) { - // Set graphics - setGraphics((gcn::OpenGLGraphics*)graphics); // Set image loader mHostImageLoader = new gcn::SDLImageLoader(); @@ -80,9 +80,6 @@ Gui::Gui(Graphics *graphics): } else #endif { - // Set graphics - setGraphics((gcn::SDLGraphics*)graphics); - // Set image loader mImageLoader = new gcn::SDLImageLoader(); } |