summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.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/safeopenglgraphics.cpp
parentf0f4f43d1263f946be23b75de4de28a4731cc93a (diff)
downloadmanaplus-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.gz
manaplus-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.bz2
manaplus-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.tar.xz
manaplus-ce28ac8bfcea7ea926fa132a23f7814682dca0dc.zip
Add restrict keyword in openglgraphicsdef.hpp
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp
index 3ab6351df..57337412c 100644
--- a/src/render/safeopenglgraphics.cpp
+++ b/src/render/safeopenglgraphics.cpp
@@ -51,7 +51,7 @@ SafeOpenGLGraphics::~SafeOpenGLGraphics()
{
}
-void SafeOpenGLGraphics::deleteArrays()
+void SafeOpenGLGraphics::deleteArrays() restrict2
{
}
@@ -627,7 +627,7 @@ void SafeOpenGLGraphics::fillRectangle(const Rect &restrict rect) restrict2
drawRectangle(rect, true);
}
-void SafeOpenGLGraphics::setTexturingAndBlending(const bool enable)
+void SafeOpenGLGraphics::setTexturingAndBlending(const bool enable) restrict2
{
if (enable)
{
@@ -696,7 +696,7 @@ void SafeOpenGLGraphics::bindTexture(const GLenum target, const GLuint texture)
}
}
-void SafeOpenGLGraphics::setColorAlpha(const float alpha)
+void SafeOpenGLGraphics::setColorAlpha(const float alpha) restrict2
{
if (!mIsByteColor && mFloatColor == alpha)
return;
@@ -706,7 +706,7 @@ void SafeOpenGLGraphics::setColorAlpha(const float alpha)
mFloatColor = alpha;
}
-void SafeOpenGLGraphics::restoreColor()
+void SafeOpenGLGraphics::restoreColor() restrict2
{
if (mIsByteColor && mByteColor == mColor)
return;
@@ -719,7 +719,7 @@ void SafeOpenGLGraphics::restoreColor()
mByteColor = mColor;
}
-void SafeOpenGLGraphics::clearScreen() const
+void SafeOpenGLGraphics::clearScreen() const restrict2
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}