GLX: Guard against redefinition of PFNGLXSWAPINTERVALEXTPROC

This type is already declared in glxext.h in the Steam Runtime.
This commit is contained in:
OatmealDome 2022-02-18 13:56:42 -05:00
parent 52d7a6f56a
commit e679502a5d
1 changed files with 4 additions and 0 deletions

View File

@ -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;