summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-03 00:27:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-03 00:27:26 +0300
commit80312e06b5a19e1ad6c6317680909b8f51868867 (patch)
treeccdedcb2000010e5e1e38c5154092b6620dfce8b /src
parent3d76846994ec2a009d3392c4b67ae9f38c5322d2 (diff)
downloadmanaplus-80312e06b5a19e1ad6c6317680909b8f51868867.tar.gz
manaplus-80312e06b5a19e1ad6c6317680909b8f51868867.tar.bz2
manaplus-80312e06b5a19e1ad6c6317680909b8f51868867.tar.xz
manaplus-80312e06b5a19e1ad6c6317680909b8f51868867.zip
Fix code style.
Diffstat (limited to 'src')
-rw-r--r--src/opengl1graphics.cpp2
-rw-r--r--src/openglgraphics.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl1graphics.cpp b/src/opengl1graphics.cpp
index 0386b4c7d..3be9490ef 100644
--- a/src/opengl1graphics.cpp
+++ b/src/opengl1graphics.cpp
@@ -510,7 +510,7 @@ void OpenGL1Graphics::prepareScreenshot()
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, w, h, 0,
- GL_RGBA, GL_UNSIGNED_BYTE, 0);
+ GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
glBindTexture(GL_TEXTURE_2D, 0);
// create a renderbuffer object to store depth info
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index 551545dd3..1c1e2f2e0 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -1055,7 +1055,7 @@ void OpenGLGraphics::prepareScreenshot()
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, w, h, 0,
- GL_RGBA, GL_UNSIGNED_BYTE, 0);
+ GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
glBindTexture(GL_TEXTURE_2D, 0);
// create a renderbuffer object to store depth info