summaryrefslogtreecommitdiff
path: root/src/render/normalopenglgraphics.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/normalopenglgraphics.cpp
parentf0f4f43d1263f946be23b75de4de28a4731cc93a (diff)
downloadplus-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.gz
plus-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.bz2
plus-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.xz
plus-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.zip
Add restrict keyword in openglgraphicsdef.hpp
Diffstat (limited to 'src/render/normalopenglgraphics.cpp')
-rw-r--r--src/render/normalopenglgraphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp
index 0fb6c9787..f4d99fa46 100644
--- a/src/render/normalopenglgraphics.cpp
+++ b/src/render/normalopenglgraphics.cpp
@@ -145,7 +145,7 @@ void NormalOpenGLGraphics::initArrays(const int vertCount)
mIntVertArrayCached = new GLint[sz];
}
-void NormalOpenGLGraphics::deleteArrays()
+void NormalOpenGLGraphics::deleteArrays() restrict2
{
deleteArraysInternal();
}
@@ -1374,7 +1374,7 @@ void NormalOpenGLGraphics::fillRectangle(const Rect &restrict rect) restrict2
drawRectangle(rect, true);
}
-void NormalOpenGLGraphics::setTexturingAndBlending(const bool enable)
+void NormalOpenGLGraphics::setTexturingAndBlending(const bool enable) restrict2
{
if (enable)
{
@@ -1614,7 +1614,7 @@ void NormalOpenGLGraphics::dumpSettings()
}
}
-void NormalOpenGLGraphics::setColorAlpha(const float alpha)
+void NormalOpenGLGraphics::setColorAlpha(const float alpha) restrict2
{
if (!mIsByteColor && mFloatColor == alpha)
return;
@@ -1624,7 +1624,7 @@ void NormalOpenGLGraphics::setColorAlpha(const float alpha)
mFloatColor = alpha;
}
-void NormalOpenGLGraphics::restoreColor()
+void NormalOpenGLGraphics::restoreColor() restrict2
{
if (mIsByteColor && mByteColor == mColor)
return;
@@ -1654,7 +1654,7 @@ void NormalOpenGLGraphics::calcImageRect(ImageVertexes *restrict const vert,
#include "render/graphics_calcImageRect.hpp"
}
-void NormalOpenGLGraphics::clearScreen() const
+void NormalOpenGLGraphics::clearScreen() const restrict2
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}