mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: Fix gl4es build under windows. Static gl functions declared with APIENTRY even without mangling.
This commit is contained in:
@@ -902,7 +902,7 @@ typedef float GLmatrix[16];
|
||||
#endif
|
||||
|
||||
#if XASH_GL_STATIC && !REF_GL_KEEP_MANGLED_FUNCTIONS
|
||||
#define GL_FUNCTION( name ) name
|
||||
#define GL_FUNCTION( name ) APIENTRY name
|
||||
#elif XASH_GL_STATIC && REF_GL_KEEP_MANGLED_FUNCTIONS
|
||||
#define GL_FUNCTION( name ) APIENTRY p##name
|
||||
#else
|
||||
|
||||
@@ -1490,13 +1490,13 @@ void GL_SetupAttributes( int safegl )
|
||||
void wes_init( const char *gles2 );
|
||||
int nanoGL_Init( void );
|
||||
#if XASH_GL4ES
|
||||
static void GL4ES_GetMainFBSize( int *width, int *height )
|
||||
static void APIENTRY GL4ES_GetMainFBSize( int *width, int *height )
|
||||
{
|
||||
*width = gpGlobals->width;
|
||||
*height = gpGlobals->height;
|
||||
}
|
||||
|
||||
static void *GL4ES_GetProcAddress( const char *name )
|
||||
static void * APIENTRY GL4ES_GetProcAddress( const char *name )
|
||||
{
|
||||
if( !Q_strcmp(name, "glShadeModel") )
|
||||
// combined gles/gles2/gl implementation exports this, but it is invalid
|
||||
|
||||
Reference in New Issue
Block a user