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/normalopenglgraphics.cpp | |
parent | f04697ea8be041a86877f6bc41958a3ceb3ded41 (diff) | |
download | manaverse-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.gz manaverse-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.bz2 manaverse-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.tar.xz manaverse-22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7.zip |
Add restrict keyword in openglgraphicsdefadvanced.hpp
Diffstat (limited to 'src/render/normalopenglgraphics.cpp')
-rw-r--r-- | src/render/normalopenglgraphics.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index f4d99fa46..942377a4c 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -120,7 +120,7 @@ NormalOpenGLGraphics::~NormalOpenGLGraphics() deleteArraysInternal(); } -void NormalOpenGLGraphics::initArrays(const int vertCount) +void NormalOpenGLGraphics::initArrays(const int vertCount) restrict2 { mMaxVertices = vertCount; if (mMaxVertices < 500) @@ -150,7 +150,7 @@ void NormalOpenGLGraphics::deleteArrays() restrict2 deleteArraysInternal(); } -void NormalOpenGLGraphics::deleteArraysInternal() +void NormalOpenGLGraphics::deleteArraysInternal() restrict2 { delete [] mFloatTexArray; mFloatTexArray = nullptr; @@ -862,7 +862,7 @@ void NormalOpenGLGraphics::drawRescaledPattern(const Image * inline void NormalOpenGLGraphics::drawVertexes(const OpenGLGraphicsVertexes - &ogl) + &restrict ogl) restrict2 { const std::vector<GLint*> &intVertPool = ogl.mIntVertPool; std::vector<GLint*>::const_iterator iv; @@ -1660,7 +1660,8 @@ void NormalOpenGLGraphics::clearScreen() const restrict2 } #ifdef DEBUG_BIND_TEXTURE -void NormalOpenGLGraphics::debugBindTexture(const Image *const image) +void NormalOpenGLGraphics::debugBindTexture(const Image *restrict const image) + restrict2 { const std::string texture = image->getIdPath(); if (mOldTexture != texture) @@ -1676,7 +1677,8 @@ void NormalOpenGLGraphics::debugBindTexture(const Image *const image) } } #else -void NormalOpenGLGraphics::debugBindTexture(const Image *const image A_UNUSED) +void NormalOpenGLGraphics::debugBindTexture(const Image *restrict const + image A_UNUSED) restrict2 { } #endif |