summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:47:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:47:46 +0300
commit454508376039429ad292de69cd491badda798062 (patch)
treed1b341cbfd0a348fc775ecf275bdf17b7356fad9 /src/render/safeopenglgraphics.cpp
parent64aabf79b5a10bdf8192bb1048804a3e36730905 (diff)
downloadmanaverse-454508376039429ad292de69cd491badda798062.tar.gz
manaverse-454508376039429ad292de69cd491badda798062.tar.bz2
manaverse-454508376039429ad292de69cd491badda798062.tar.xz
manaverse-454508376039429ad292de69cd491badda798062.zip
Fix code style in render.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp
index d5c9981a3..fcf4a7e68 100644
--- a/src/render/safeopenglgraphics.cpp
+++ b/src/render/safeopenglgraphics.cpp
@@ -500,7 +500,7 @@ SDL_Surface* SafeOpenGLGraphics::getScreenshot()
glReadPixels(0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, screenshot->pixels);
// Flip the screenshot, as OpenGL has 0,0 in bottom left
- unsigned int lineSize = 3 * w;
+ size_t lineSize = 3 * w;
GLubyte* buf = new GLubyte[lineSize];
const int h2 = h / 2;