mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-29 15:12:17 +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_BeginRendering (int *x, int *y, int *width, int *height);
|
||||||
void GL_EndRendering (void);
|
void GL_EndRendering (void);
|
||||||
|
|
||||||
#ifndef APIENTRY
|
/* Mesa pre-3.1 defines APIENTRY instead of GLAPIENTRY */
|
||||||
/* Mesa defines APIENTRY, but other versions of OpenGL do not */
|
#ifndef GLAPIENTRY
|
||||||
#ifdef GLAPIENTRY
|
#ifdef APIENTRY
|
||||||
#define APIENTRY GLAPIENTRY
|
/* Create compatible GLAPIENTRY definition from APIENTRY */
|
||||||
|
#define GLAPIENTRY APIENTRY
|
||||||
#else
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue