mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-05 03:34:25 +00:00
ref: gl: disable unused variable warning for GL functions defintions
This commit is contained in:
parent
748b06a00e
commit
5b73a788da
@ -892,6 +892,11 @@ typedef float GLmatrix[16];
|
|||||||
#define WGL_SAMPLE_BUFFERS_ARB 0x2041
|
#define WGL_SAMPLE_BUFFERS_ARB 0x2041
|
||||||
#define WGL_SAMPLES_ARB 0x2042
|
#define WGL_SAMPLES_ARB 0x2042
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined( XASH_GL_STATIC ) && !defined( REF_GL_KEEP_MANGLED_FUNCTIONS )
|
#if defined( XASH_GL_STATIC ) && !defined( REF_GL_KEEP_MANGLED_FUNCTIONS )
|
||||||
#define GL_FUNCTION( name ) name
|
#define GL_FUNCTION( name ) name
|
||||||
#elif defined( XASH_GL_STATIC ) && defined( REF_GL_KEEP_MANGLED_FUNCTIONS )
|
#elif defined( XASH_GL_STATIC ) && defined( REF_GL_KEEP_MANGLED_FUNCTIONS )
|
||||||
@ -1861,4 +1866,8 @@ APIENTRY_LINKAGE void GL_FUNCTION( glTexImage2DMultisample )(GLenum target, GLsi
|
|||||||
#define pglSwapInterval glSwapInterval
|
#define pglSwapInterval glSwapInterval
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif//GL_EXPORT_H
|
#endif//GL_EXPORT_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user