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/openglgraphicsdefadvanced.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/render/openglgraphicsdefadvanced.hpp') diff --git a/src/render/openglgraphicsdefadvanced.hpp b/src/render/openglgraphicsdefadvanced.hpp index 16afb9c81..f9022483f 100644 --- a/src/render/openglgraphicsdefadvanced.hpp +++ b/src/render/openglgraphicsdefadvanced.hpp @@ -21,12 +21,13 @@ */ public: - inline void drawVertexes(const OpenGLGraphicsVertexes &ogl); + inline void drawVertexes(const OpenGLGraphicsVertexes &restrict ogl) + restrict2; - void initArrays(const int vertCount) override final; + void initArrays(const int vertCount) restrict2 override final; #ifdef DEBUG_DRAW_CALLS - unsigned int getDrawCalls() const + unsigned int getDrawCalls() restrict2 const { return mLastDrawCalls; } static unsigned int mDrawCalls; @@ -35,6 +36,6 @@ public: #endif protected: - void debugBindTexture(const Image *const image); + void debugBindTexture(const Image *restrict const image) restrict2; - void deleteArraysInternal(); + void deleteArraysInternal() restrict2; -- cgit v1.2.3-70-g09d2