summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-25 01:14:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-25 01:14:37 +0300
commitce28ac8bfcea7ea926fa132a23f7814682dca0dc (patch)
treed4edf63b01bb9e80638be2caa7d596e17a17a248 /src/render/modernopenglgraphics.cpp
parentf0f4f43d1263f946be23b75de4de28a4731cc93a (diff)
downloadmv-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.gz
mv-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.bz2
mv-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.xz
mv-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.zip
Add restrict keyword in openglgraphicsdef.hpp
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r--src/render/modernopenglgraphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp
index cb24eb887..3872a8af9 100644
--- a/src/render/modernopenglgraphics.cpp
+++ b/src/render/modernopenglgraphics.cpp
@@ -211,7 +211,7 @@ void ModernOpenGLGraphics::screenResized()
postInit();
}
-void ModernOpenGLGraphics::deleteArrays()
+void ModernOpenGLGraphics::deleteArrays() restrict2
{
deleteArraysInternal();
}
@@ -251,7 +251,7 @@ void ModernOpenGLGraphics::setColor(const Color &color)
}
}
-void ModernOpenGLGraphics::setColorAlpha(const float alpha)
+void ModernOpenGLGraphics::setColorAlpha(const float alpha) restrict2
{
if (mAlphaCached != alpha)
{
@@ -980,7 +980,7 @@ void ModernOpenGLGraphics::fillRectangle(const Rect &restrict rect) restrict2
mglDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
}
-void ModernOpenGLGraphics::setTexturingAndBlending(const bool enable)
+void ModernOpenGLGraphics::setTexturingAndBlending(const bool enable) restrict2
{
if (enable)
{
@@ -1208,7 +1208,7 @@ void ModernOpenGLGraphics::calcImageRect(ImageVertexes *restrict const vert,
#include "render/graphics_calcImageRect.hpp"
}
-void ModernOpenGLGraphics::clearScreen() const
+void ModernOpenGLGraphics::clearScreen() const restrict2
{
mglClear(GL_COLOR_BUFFER_BIT |
GL_DEPTH_BUFFER_BIT |