diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-15 00:15:45 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-15 00:15:45 +0000 |
commit | 7f88cac6ff2f8c525bca5dd74e96662005358120 (patch) | |
tree | e4bc0294918103af7968e7ff0b207cbf20a9d3c7 /src/main.cpp | |
parent | cfaf8b836b21842b5d22ad774f93c2c364d33c0b (diff) | |
download | mana-7f88cac6ff2f8c525bca5dd74e96662005358120.tar.gz mana-7f88cac6ff2f8c525bca5dd74e96662005358120.tar.bz2 mana-7f88cac6ff2f8c525bca5dd74e96662005358120.tar.xz mana-7f88cac6ff2f8c525bca5dd74e96662005358120.zip |
Made the OpenGL related code fully #ifdef'ed.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5d06cf97..a6c07467 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -230,15 +230,19 @@ void init_engine() fullscreen = ((int)config.getValue("screen", 0) == 1); hwaccel = ((int)config.getValue("hwaccel", 0) == 1); +#ifdef USE_OPENGL bool useOpenGL = (config.getValue("opengl", 0) == 1); -#ifdef USE_OPENGL // Setup image loading for the right image format Image::setLoadAsOpenGL(useOpenGL); -#endif // Create the graphics context graphics = new Graphics(useOpenGL); +#else + // Create the graphics context + graphics = new Graphics(); +#endif + // Try to set the desired video mode if (!graphics->setVideoMode(width, height, bpp, fullscreen, hwaccel)) { |