summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/GLX.cpp
diff options
context:
space:
mode:
authorOatmealDome <julian@oatmealdome.me>2022-02-18 13:56:42 -0500
committerOatmealDome <julian@oatmealdome.me>2022-05-29 13:50:32 -0400
commite679502a5d947e99f606fb8389fbb806b347f05a (patch)
treee13d8fa63581fca9629d52ba5429069c710f87e3 /Source/Core/Common/GL/GLInterface/GLX.cpp
parent52d7a6f56a904a0bada2aa338f79f18d8284a47c (diff)
GLX: Guard against redefinition of PFNGLXSWAPINTERVALEXTPROC
This type is already declared in glxext.h in the Steam Runtime.
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/GLX.cpp')
-rw-r--r--Source/Core/Common/GL/GLInterface/GLX.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/GL/GLInterface/GLX.cpp b/Source/Core/Common/GL/GLInterface/GLX.cpp
index 930994a992..b04296d096 100644
--- a/Source/Core/Common/GL/GLInterface/GLX.cpp
+++ b/Source/Core/Common/GL/GLInterface/GLX.cpp
@@ -13,7 +13,11 @@
typedef GLXContext (*PFNGLXCREATECONTEXTATTRIBSPROC)(Display*, GLXFBConfig, GLXContext, Bool,
const int*);
+
+#ifndef GLX_EXT_swap_control
typedef void (*PFNGLXSWAPINTERVALEXTPROC)(Display*, GLXDrawable, int);
+#endif
+
typedef int (*PFNGLXSWAPINTERVALMESAPROC)(unsigned int);
static PFNGLXCREATECONTEXTATTRIBSPROC glXCreateContextAttribs = nullptr;