summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/render/mobileopengl2graphics.cpp2
-rw-r--r--src/render/mobileopengl2graphics.h2
-rw-r--r--src/render/modernopenglgraphics.cpp2
-rw-r--r--src/render/modernopenglgraphics.h2
-rw-r--r--src/render/openglgraphicsdef1.hpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp
index cd9686149..5e05540ad 100644
--- a/src/render/mobileopengl2graphics.cpp
+++ b/src/render/mobileopengl2graphics.cpp
@@ -237,7 +237,7 @@ bool MobileOpenGL2Graphics::setVideoMode(const int w, const int h,
return setOpenGLMode();
}
-void MobileOpenGL2Graphics::setColor(const Color &color)
+void MobileOpenGL2Graphics::setColor(const Color &restrict color) restrict2
{
mColorAlpha = (color.a != 255);
if (mColor != color)
diff --git a/src/render/mobileopengl2graphics.h b/src/render/mobileopengl2graphics.h
index 0a5edc564..33e7d2f6d 100644
--- a/src/render/mobileopengl2graphics.h
+++ b/src/render/mobileopengl2graphics.h
@@ -58,7 +58,7 @@ class MobileOpenGL2Graphics final : public Graphics
void postInit() override final;
- void setColor(const Color &color) override final;
+ void setColor(const Color &restrict color) restrict2 override final;
void screenResized() override final;
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp
index 3872a8af9..e3c80848d 100644
--- a/src/render/modernopenglgraphics.cpp
+++ b/src/render/modernopenglgraphics.cpp
@@ -237,7 +237,7 @@ bool ModernOpenGLGraphics::setVideoMode(const int w, const int h,
return setOpenGLMode();
}
-void ModernOpenGLGraphics::setColor(const Color &color)
+void ModernOpenGLGraphics::setColor(const Color &restrict color) restrict2
{
mColorAlpha = (color.a != 255);
if (mColor != color)
diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h
index 03a61858b..1e5f00d1a 100644
--- a/src/render/modernopenglgraphics.h
+++ b/src/render/modernopenglgraphics.h
@@ -58,7 +58,7 @@ class ModernOpenGLGraphics final : public Graphics
void postInit() override final;
- void setColor(const Color &color) override final;
+ void setColor(const Color &restrict color) restrict2 override final;
void screenResized() override final;
diff --git a/src/render/openglgraphicsdef1.hpp b/src/render/openglgraphicsdef1.hpp
index 0a1ed7ba2..a8088faf6 100644
--- a/src/render/openglgraphicsdef1.hpp
+++ b/src/render/openglgraphicsdef1.hpp
@@ -21,7 +21,7 @@
*/
public:
- void setColor(const Color &color) override final
+ void setColor(const Color &restrict color) override final
{
mColor = color;
mColorAlpha = (color.a != 255);