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/mobileopenglgraphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render/mobileopenglgraphics.cpp') diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 9a420740b..dcb34ffd5 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -113,7 +113,7 @@ void MobileOpenGLGraphics::initArrays() mMaxVertices = 1024; // need alocate small size, after if limit reached reallocate to double size - const int sz = mMaxVertices * 4 + 30; + const size_t sz = mMaxVertices * 4 + 30; vertexBufSize = mMaxVertices; if (!mFloatTexArray) mFloatTexArray = new GLfloat[sz]; @@ -924,7 +924,7 @@ SDL_Surface* MobileOpenGLGraphics::getScreenshot() if (SDL_MUSTLOCK(screenshot)) SDL_LockSurface(screenshot); - const unsigned int lineSize = 3 * w; + const size_t lineSize = 3 * w; GLubyte *const buf = new GLubyte[lineSize]; // Grap the pixel buffer and write it to the SDL surface -- cgit v1.2.3-70-g09d2