From 0f6fcf759a1a02c1dd8955971d54395e0d529244 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Sep 2012 13:09:20 +0300 Subject: switch to hardware depend batch sizes. but limit max batch size to 1024. --- src/graphics.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/graphics.cpp') 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(); -- cgit v1.2.3-70-g09d2