From 454508376039429ad292de69cd491badda798062 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 May 2014 22:47:46 +0300 Subject: Fix code style in render. --- src/render/normalopenglgraphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render/normalopenglgraphics.cpp') diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index bb8eed230..7130e2914 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -132,7 +132,7 @@ void NormalOpenGLGraphics::initArrays() // need alocate small size, after if limit reached reallocate to double size vertexBufSize = mMaxVertices; - const int sz = mMaxVertices * 4 + 30; + const size_t sz = mMaxVertices * 4 + 30; if (!mFloatTexArray) mFloatTexArray = new GLfloat[sz]; if (!mIntTexArray) @@ -1194,7 +1194,7 @@ SDL_Surface* NormalOpenGLGraphics::getScreenshot() glReadPixels(0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, screenshot->pixels); // Flip the screenshot, as OpenGL has 0,0 in bottom left - const unsigned int lineSize = 3 * w; + const size_t lineSize = 3 * w; GLubyte *const buf = new GLubyte[lineSize]; const int h2 = h / 2; -- cgit v1.2.3-60-g2f50