From 906332df8779bca71641c6bcdc84d04a1de6d2eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 May 2014 12:07:25 +0300 Subject: Add functions for resize batch size (OpenGL). --- src/render/nullopenglgraphics.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/render/nullopenglgraphics.cpp') diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp index ca6fa1660..4498ed9c6 100644 --- a/src/render/nullopenglgraphics.cpp +++ b/src/render/nullopenglgraphics.cpp @@ -71,9 +71,9 @@ NullOpenGLGraphics::~NullOpenGLGraphics() delete [] mIntVertArray; } -void NullOpenGLGraphics::initArrays() +void NullOpenGLGraphics::initArrays(const int vertCount) { - mMaxVertices = graphicsManager.getMaxVertices(); + mMaxVertices = vertCount; if (mMaxVertices < 500) mMaxVertices = 500; else if (mMaxVertices > 1024) @@ -90,6 +90,10 @@ void NullOpenGLGraphics::initArrays() mIntVertArray = new GLint[sz]; } +void NullOpenGLGraphics::deleteArrays() +{ +} + bool NullOpenGLGraphics::setVideoMode(const int w, const int h, const int scale, const int bpp, -- cgit v1.2.3-60-g2f50