From e679502a5d947e99f606fb8389fbb806b347f05a Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Fri, 18 Feb 2022 13:56:42 -0500 Subject: [PATCH] GLX: Guard against redefinition of PFNGLXSWAPINTERVALEXTPROC This type is already declared in glxext.h in the Steam Runtime. --- Source/Core/Common/GL/GLInterface/GLX.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;