summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-09 13:09:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-11 00:20:47 +0300
commit0f6fcf759a1a02c1dd8955971d54395e0d529244 (patch)
tree1ed3705938a7c9c61b81c0d1b9019949cf6bef6d /src/graphics.cpp
parent3e6e18339748880c2038e1ea63ea36c540288f3c (diff)
downloadmv-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.gz
mv-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.bz2
mv-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.xz
mv-0f6fcf759a1a02c1dd8955971d54395e0d529244.zip
switch to hardware depend batch sizes.
but limit max batch size to 1024.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 384bc2341..19c53c83a 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -166,11 +166,8 @@ bool Graphics::setOpenGLMode()
logger->log("Using OpenGL %s double buffering.",
(gotDoubleBuffer ? "with" : "without"));
- graphicsManager.setGLVersion();
- graphicsManager.initOpenGLFunctions();
- graphicsManager.updateExtensions();
- graphicsManager.updatePlanformExtensions();
-
+ graphicsManager.initOpenGL();
+ initArrays();
graphicsManager.updateTextureFormat();
updateMemoryInfo();