diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:47:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:47:46 +0300 |
commit | 454508376039429ad292de69cd491badda798062 (patch) | |
tree | d1b341cbfd0a348fc775ecf275bdf17b7356fad9 /src/render/mobileopenglgraphics.cpp | |
parent | 64aabf79b5a10bdf8192bb1048804a3e36730905 (diff) | |
download | plus-454508376039429ad292de69cd491badda798062.tar.gz plus-454508376039429ad292de69cd491badda798062.tar.bz2 plus-454508376039429ad292de69cd491badda798062.tar.xz plus-454508376039429ad292de69cd491badda798062.zip |
Fix code style in render.
Diffstat (limited to 'src/render/mobileopenglgraphics.cpp')
-rw-r--r-- | src/render/mobileopenglgraphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |