mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-25 21:31:18 +00:00
Fixed up screwy GLAPIENTRY fix for older Mesa versions. We can support
Mesa 3.0 again.
This commit is contained in:
parent
f7cb194142
commit
2520a3361c
1 changed files with 7 additions and 5 deletions
|
@ -33,12 +33,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
void GL_BeginRendering (int *x, int *y, int *width, int *height);
|
||||
void GL_EndRendering (void);
|
||||
|
||||
#ifndef APIENTRY
|
||||
/* Mesa defines APIENTRY, but other versions of OpenGL do not */
|
||||
#ifdef GLAPIENTRY
|
||||
#define APIENTRY GLAPIENTRY
|
||||
/* Mesa pre-3.1 defines APIENTRY instead of GLAPIENTRY */
|
||||
#ifndef GLAPIENTRY
|
||||
#ifdef APIENTRY
|
||||
/* Create compatible GLAPIENTRY definition from APIENTRY */
|
||||
#define GLAPIENTRY APIENTRY
|
||||
#else
|
||||
#define APIENTRY
|
||||
/* Error out -- it's pathological and we don't know what to do */
|
||||
#error I don't know what data type GLAPIENTRY is on this system.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue