diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-25 01:48:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-25 01:48:51 +0300 |
commit | 22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7 (patch) | |
tree | 6e7c49255450d107ae34a8fae5a989909e8e75c1 /src/render/modernopenglgraphics.cpp | |
parent | f04697ea8be041a86877f6bc41958a3ceb3ded41 (diff) | |
download | mv-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/modernopenglgraphics.cpp')
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index e3c80848d..206755dd0 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -139,7 +139,7 @@ void ModernOpenGLGraphics::deleteGLObjects() mglDeleteVertexArrays(1, &mVao); } -void ModernOpenGLGraphics::initArrays(const int vertCount) +void ModernOpenGLGraphics::initArrays(const int vertCount) restrict2 { mMaxVertices = vertCount; if (mMaxVertices < 500) @@ -216,7 +216,7 @@ void ModernOpenGLGraphics::deleteArrays() restrict2 deleteArraysInternal(); } -void ModernOpenGLGraphics::deleteArraysInternal() +void ModernOpenGLGraphics::deleteArraysInternal() restrict2 { delete [] mIntArray; mIntArray = nullptr; @@ -561,7 +561,8 @@ void ModernOpenGLGraphics::drawRescaledPattern(const Image * } inline void ModernOpenGLGraphics::drawVertexes(const - OpenGLGraphicsVertexes &ogl) + OpenGLGraphicsVertexes & + restrict ogl) restrict2 { const std::vector<int> &vp = ogl.mVp; const std::vector<GLuint> &vbos = ogl.mVbo; @@ -1311,7 +1312,8 @@ void ModernOpenGLGraphics::drawLineArrays(const int size) } #ifdef DEBUG_BIND_TEXTURE -void ModernOpenGLGraphics::debugBindTexture(const Image *const image) +void ModernOpenGLGraphics::debugBindTexture(const Image *restrict const image) + restrict2 { const std::string texture = image->getIdPath(); if (mOldTexture != texture) @@ -1327,7 +1329,8 @@ void ModernOpenGLGraphics::debugBindTexture(const Image *const image) } } #else -void ModernOpenGLGraphics::debugBindTexture(const Image *const image A_UNUSED) +void ModernOpenGLGraphics::debugBindTexture(const Image *restrict const + image A_UNUSED) restrict2 { } #endif |