From 22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Dec 2015 01:48:51 +0300 Subject: Add restrict keyword in openglgraphicsdefadvanced.hpp --- src/render/nullopenglgraphics.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/render/nullopenglgraphics.cpp') 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 &intVertPool = ogl.mIntVertPool; std::vector::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 -- cgit v1.2.3-70-g09d2