From ce28ac8bfcea7ea926fa132a23f7814682dca0dc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Dec 2015 01:14:37 +0300 Subject: Add restrict keyword in openglgraphicsdef.hpp --- src/render/mobileopenglgraphics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/render/mobileopenglgraphics.cpp') diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 8c1c07c0f..a875befc9 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -127,7 +127,7 @@ void MobileOpenGLGraphics::initArrays(const int vertCount) mShortVertArrayCached = new GLshort[sz]; } -void MobileOpenGLGraphics::deleteArrays() +void MobileOpenGLGraphics::deleteArrays() restrict2 { deleteArraysInternal(); } @@ -1051,7 +1051,7 @@ void MobileOpenGLGraphics::fillRectangle(const Rect &restrict rect) restrict2 drawRectangle(rect, true); } -void MobileOpenGLGraphics::setTexturingAndBlending(const bool enable) +void MobileOpenGLGraphics::setTexturingAndBlending(const bool enable) restrict2 { if (enable) { @@ -1270,7 +1270,7 @@ void MobileOpenGLGraphics::dumpSettings() } } -void MobileOpenGLGraphics::setColorAlpha(const float alpha) +void MobileOpenGLGraphics::setColorAlpha(const float alpha) restrict2 { if (!mIsByteColor && mFloatColor == alpha) return; @@ -1280,7 +1280,7 @@ void MobileOpenGLGraphics::setColorAlpha(const float alpha) mFloatColor = alpha; } -void MobileOpenGLGraphics::restoreColor() +void MobileOpenGLGraphics::restoreColor() restrict2 { if (mIsByteColor && mByteColor == mColor) return; @@ -1310,7 +1310,7 @@ void MobileOpenGLGraphics::calcImageRect(ImageVertexes *restrict const vert, #include "render/graphics_calcImageRect.hpp" } -void MobileOpenGLGraphics::clearScreen() const +void MobileOpenGLGraphics::clearScreen() const restrict2 { mglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | -- cgit v1.2.3-70-g09d2