summaryrefslogtreecommitdiff
path: root/src/render/nullopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-25 01:48:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-25 01:48:51 +0300
commit22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7 (patch)
tree6e7c49255450d107ae34a8fae5a989909e8e75c1 /src/render/nullopenglgraphics.cpp
parentf04697ea8be041a86877f6bc41958a3ceb3ded41 (diff)
downloadmv-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.gz
mv-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.bz2
mv-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.xz
mv-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.zip
Add restrict keyword in openglgraphicsdefadvanced.hpp
Diffstat (limited to 'src/render/nullopenglgraphics.cpp')
-rw-r--r--src/render/nullopenglgraphics.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp
index 5a2c4f0d9..16b1b5523 100644
--- a/src/render/nullopenglgraphics.cpp
+++ b/src/render/nullopenglgraphics.cpp
@@ -70,7 +70,7 @@ NullOpenGLGraphics::~NullOpenGLGraphics()
delete [] mIntVertArray;
}
-void NullOpenGLGraphics::initArrays(const int vertCount)
+void NullOpenGLGraphics::initArrays(const int vertCount) restrict2
{
mMaxVertices = vertCount;
if (mMaxVertices < 500)
@@ -530,7 +530,7 @@ void NullOpenGLGraphics::drawRescaledPattern(const Image *restrict const image,
inline void NullOpenGLGraphics::drawVertexes(const
OpenGLGraphicsVertexes
- &ogl)
+ &restrict ogl) restrict2
{
const std::vector<GLint*> &intVertPool = ogl.mIntVertPool;
std::vector<GLint*>::const_iterator iv;
@@ -1210,7 +1210,8 @@ void NullOpenGLGraphics::clearScreen() const restrict2
}
#ifdef DEBUG_BIND_TEXTURE
-void NullOpenGLGraphics::debugBindTexture(const Image *const image)
+void NullOpenGLGraphics::debugBindTexture(const Image *restrict const image)
+ restrict2
{
const std::string texture = image->getIdPath();
if (mOldTexture != texture)
@@ -1226,7 +1227,8 @@ void NullOpenGLGraphics::debugBindTexture(const Image *const image)
}
}
#else
-void NullOpenGLGraphics::debugBindTexture(const Image *const image A_UNUSED)
+void NullOpenGLGraphics::debugBindTexture(const Image *restrict const
+ image A_UNUSED) restrict2
{
}
#endif