diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-09 13:09:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-11 00:20:47 +0300 |
commit | 0f6fcf759a1a02c1dd8955971d54395e0d529244 (patch) | |
tree | 1ed3705938a7c9c61b81c0d1b9019949cf6bef6d /src/graphics.cpp | |
parent | 3e6e18339748880c2038e1ea63ea36c540288f3c (diff) | |
download | manaverse-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.gz manaverse-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.bz2 manaverse-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.xz manaverse-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.cpp | 7 |
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(); |