diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-26 05:07:12 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-26 05:50:44 +0200 |
commit | 8403dcf857c9cc639e8162edd5d4df4af07274bc (patch) | |
tree | 2f127213e0df4691b06c549a8f20b3d5225b9220 /src/client.cpp | |
parent | fc24490f1ecd186f3c294915fadee62c3053d841 (diff) | |
download | manaplus-8403dcf857c9cc639e8162edd5d4df4af07274bc.tar.gz manaplus-8403dcf857c9cc639e8162edd5d4df4af07274bc.tar.bz2 manaplus-8403dcf857c9cc639e8162edd5d4df4af07274bc.tar.xz manaplus-8403dcf857c9cc639e8162edd5d4df4af07274bc.zip |
Precalculation vertexes for improving draw speed.
Implemented in Software and fast OpenGL backends.
Not all controls using this mode because some limitations.
Known issue: impossible compile without opengl.
Will be fixed in next commits.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 0179c0f51..8fa9a1c8c 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -28,6 +28,7 @@ #include "emoteshortcut.h" #include "event.h" #include "game.h" +#include "graphicsvertexes.h" #include "itemshortcut.h" #include "dropshortcut.h" #include "keyboardconfig.h" @@ -399,6 +400,7 @@ Client::Client(const Options &options): // Setup image loading for the right image format Image::setLoadAsOpenGL(useOpenGL); + GraphicsVertexes::setLoadAsOpenGL(useOpenGL); // Create the graphics context switch(useOpenGL) |