summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-01 17:40:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-01 17:57:47 +0300
commit5359b7c20b9ee93989a840e555f0a2102b7bb806 (patch)
treea95017d22a4f3e2f57be59dd4826f3b823a65656 /src/client.cpp
parent222748a7e0c79225c66485898b913aa60f56cfe2 (diff)
downloadManaVerse-5359b7c20b9ee93989a840e555f0a2102b7bb806.tar.gz
ManaVerse-5359b7c20b9ee93989a840e555f0a2102b7bb806.tar.bz2
ManaVerse-5359b7c20b9ee93989a840e555f0a2102b7bb806.tar.xz
ManaVerse-5359b7c20b9ee93989a840e555f0a2102b7bb806.zip
add SDL2 default render mode.
in this mode SDL using own driver with hardware acceleration.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index fef14b6e6..0f9af3d8a 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -572,15 +572,14 @@ void Client::gameInit()
}
#endif
-#ifdef USE_OPENGL
openGLMode = intToRenderType(config.getIntValue("opengl"));
+#ifdef USE_OPENGL
OpenGLImageHelper::setBlur(config.getBoolValue("blur"));
SurfaceImageHelper::SDLSetEnableAlphaCache(
config.getBoolValue("alphaCache") && !openGLMode);
ImageHelper::setEnableAlpha(config.getFloatValue("guialpha") != 1.0f
|| openGLMode);
#else
- openGLMode = RENDER_SOFTWARE;
SurfaceImageHelper::SDLSetEnableAlphaCache(
config.getBoolValue("alphaCache"));
ImageHelper::setEnableAlpha(config.getFloatValue("guialpha") != 1.0f);