summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-05-30 06:13:34 +0300
committerAndrei Karas <akaras@inbox.ru>2020-05-30 06:13:34 +0300
commit2715ed0cadbe5a0d83a0cf810f70916a897f03c4 (patch)
tree6a14cf9a0b9a848a7f7399ec8ac46e928297a881 /src/render
parent14d64cf0785ae8786df86b4a32652cc426251691 (diff)
downloadmanaplus-2715ed0cadbe5a0d83a0cf810f70916a897f03c4.tar.gz
manaplus-2715ed0cadbe5a0d83a0cf810f70916a897f03c4.tar.bz2
manaplus-2715ed0cadbe5a0d83a0cf810f70916a897f03c4.tar.xz
manaplus-2715ed0cadbe5a0d83a0cf810f70916a897f03c4.zip
Disable warning conditionally-supported for opengl function pointers
Diffstat (limited to 'src/render')
-rw-r--r--src/render/openglx/mglxinit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/openglx/mglxinit.cpp b/src/render/openglx/mglxinit.cpp
index d83872871..23e1553c2 100644
--- a/src/render/openglx/mglxinit.cpp
+++ b/src/render/openglx/mglxinit.cpp
@@ -34,6 +34,8 @@
void Glx::initFunctions()
{
+PRAGMA49(GCC diagnostic push)
+PRAGMA49(GCC diagnostic ignored "-Wconditionally-supported")
assignFunction(glXCreateContext)
assignFunction(glXGetCurrentContext)
assignFunctionARB(glXCreateContextAttribs)
@@ -41,6 +43,7 @@ void Glx::initFunctions()
assignFunction(glXDestroyContext)
assignFunction(glXMakeCurrent)
assignFunction(glXSwapBuffers)
+PRAGMA49(GCC diagnostic pop)
}
#endif // defined(USE_OPENGL) && defined(USE_X11)