summaryrefslogtreecommitdiff
path: root/src/render/mobileopenglgraphics.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/mobileopenglgraphics.cpp
parentf04697ea8be041a86877f6bc41958a3ceb3ded41 (diff)
downloadmanaplus-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.gz
manaplus-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.bz2
manaplus-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.xz
manaplus-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.zip
Add restrict keyword in openglgraphicsdefadvanced.hpp
Diffstat (limited to 'src/render/mobileopenglgraphics.cpp')
-rw-r--r--src/render/mobileopenglgraphics.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp
index a875befc9..11227325a 100644
--- a/src/render/mobileopenglgraphics.cpp
+++ b/src/render/mobileopenglgraphics.cpp
@@ -106,7 +106,7 @@ void MobileOpenGLGraphics::postInit()
// glesTest();
}
-void MobileOpenGLGraphics::initArrays(const int vertCount)
+void MobileOpenGLGraphics::initArrays(const int vertCount) restrict2
{
mMaxVertices = vertCount;
if (mMaxVertices < 500)
@@ -132,7 +132,7 @@ void MobileOpenGLGraphics::deleteArrays() restrict2
deleteArraysInternal();
}
-void MobileOpenGLGraphics::deleteArraysInternal()
+void MobileOpenGLGraphics::deleteArraysInternal() restrict2
{
delete [] mFloatTexArray;
mFloatTexArray = nullptr;
@@ -605,7 +605,7 @@ void MobileOpenGLGraphics::drawRescaledPattern(const Image *
inline void MobileOpenGLGraphics::drawVertexes(const
OpenGLGraphicsVertexes
- &ogl)
+ &restrict ogl) restrict2
{
const std::vector<GLshort*> &shortVertPool = ogl.mShortVertPool;
std::vector<GLshort*>::const_iterator iv;
@@ -1318,7 +1318,8 @@ void MobileOpenGLGraphics::clearScreen() const restrict2
}
#ifdef DEBUG_BIND_TEXTURE
-void MobileOpenGLGraphics::debugBindTexture(const Image *const image)
+void MobileOpenGLGraphics::debugBindTexture(const Image *restrict const image)
+ restrict2
{
const std::string texture = image->getIdPath();
if (mOldTexture != texture)
@@ -1334,7 +1335,8 @@ void MobileOpenGLGraphics::debugBindTexture(const Image *const image)
}
}
#else
-void MobileOpenGLGraphics::debugBindTexture(const Image *const image A_UNUSED)
+void MobileOpenGLGraphics::debugBindTexture(const Image *restrict const
+ image A_UNUSED) restrict2
{
}
#endif