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/mobileopenglgraphics.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/render/mobileopenglgraphics.cpp') 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 &shortVertPool = ogl.mShortVertPool; std::vector::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 -- cgit v1.2.3-60-g2f50