From 104df5cae8521f4a234381567b19e6b4da3ff1f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Dec 2015 20:25:38 +0300 Subject: Add restrict keyword to all renderers. --- src/render/nullopenglgraphics.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/render/nullopenglgraphics.h') diff --git a/src/render/nullopenglgraphics.h b/src/render/nullopenglgraphics.h index abd73a117..cbb9f5b8b 100644 --- a/src/render/nullopenglgraphics.h +++ b/src/render/nullopenglgraphics.h @@ -55,21 +55,22 @@ class NullOpenGLGraphics final : public Graphics ~NullOpenGLGraphics(); - inline void drawQuadArrayfi(const int size); + inline void drawQuadArrayfi(const int size) restrict2; - inline void drawQuadArrayfi(const GLint *const intVertArray, - const GLfloat *const floatTexArray, - const int size); + inline void drawQuadArrayfi(const GLint *restrict const intVertArray, + const GLfloat *restrict const + floatTexArray, + const int size) restrict2; - inline void drawQuadArrayii(const int size); + inline void drawQuadArrayii(const int size) restrict2; - inline void drawQuadArrayii(const GLint *const intVertArray, - const GLint *const intTexArray, - const int size); + inline void drawQuadArrayii(const GLint *restrict const intVertArray, + const GLint *restrict const intTexArray, + const int size) restrict2; - inline void drawLineArrayi(const int size); + inline void drawLineArrayi(const int size) restrict2; - inline void drawLineArrayf(const int size); + inline void drawLineArrayf(const int size) restrict2; #include "render/graphicsdef.hpp" -- cgit v1.2.3-70-g09d2