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/mobileopenglgraphics.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/render/mobileopenglgraphics.h') diff --git a/src/render/mobileopenglgraphics.h b/src/render/mobileopenglgraphics.h index ff722671e..e22acf203 100644 --- a/src/render/mobileopenglgraphics.h +++ b/src/render/mobileopenglgraphics.h @@ -55,17 +55,19 @@ class MobileOpenGLGraphics final : public Graphics ~MobileOpenGLGraphics(); - void postInit() override final; + void postInit() restrict2 override final; - inline void drawTriangleArrayfs(const GLshort *const shortVertArray, - const GLfloat *const floatTexArray, - const int size); + inline void drawTriangleArrayfs(const GLshort *restrict const + shortVertArray, + const GLfloat *restrict const + floatTexArray, + const int size) restrict2; - inline void drawTriangleArrayfs(const int size); + inline void drawTriangleArrayfs(const int size) restrict2; - inline void drawTriangleArrayfsCached(const int size); + inline void drawTriangleArrayfsCached(const int size) restrict2; - inline void drawLineArrays(const int size); + inline void drawLineArrays(const int size) restrict2; #include "render/graphicsdef.hpp" -- cgit v1.2.3-60-g2f50