Repaired UQuake gl_rmail.c mess, commented out gl_reporttjunctions refs,

since they are apparently unused by either QW or UQuake.
This commit is contained in:
Jeff Teunissen 2000-01-01 15:03:44 +00:00
parent 5011f5c5e4
commit ee7164d21b
6 changed files with 21 additions and 32 deletions

View file

@ -102,7 +102,7 @@ cvar_t gl_playermip = {"gl_playermip","0"};
cvar_t gl_nocolors = {"gl_nocolors","0"}; cvar_t gl_nocolors = {"gl_nocolors","0"};
#ifdef QUAKEWORLD #ifdef QUAKEWORLD
cvar_t gl_keeptjunctions = {"gl_keeptjunctions","1"}; cvar_t gl_keeptjunctions = {"gl_keeptjunctions","1"};
cvar_t gl_reporttjunctions = {"gl_reporttjunctions","0"}; //cvar_t gl_reporttjunctions = {"gl_reporttjunctions","0"};
#else #else
cvar_t gl_keeptjunctions = {"gl_keeptjunctions","0"}; cvar_t gl_keeptjunctions = {"gl_keeptjunctions","0"};
cvar_t gl_doubleeyes = {"gl_doubleeys", "1"}; cvar_t gl_doubleeyes = {"gl_doubleeys", "1"};
@ -511,7 +511,8 @@ void R_DrawAliasModel (entity_t *e)
if (!strcmp(clmodel->name, "progs/player.mdl")) { if (!strcmp(clmodel->name, "progs/player.mdl")) {
#else #else
i = currententity - cl_entities; i = currententity - cl_entities;
if (i >= 1 && i<=cl.maxclients /* && !strcmp (currententity->model->name, "progs/player.mdl") */) // if (i >= 1 && i <= cl.maxclients && !strcmp (currententity->model->name, "progs/player.mdl")) {
if (i >= 1 && i <= cl.maxclients) {
#endif #endif
if (ambientlight < 8) if (ambientlight < 8)
ambientlight = shadelight = 8; ambientlight = shadelight = 8;
@ -549,7 +550,7 @@ void R_DrawAliasModel (entity_t *e)
#ifdef QUAKEWORLD #ifdef QUAKEWORLD
if (!strcmp (clmodel->name, "progs/eyes.mdl") ) { if (!strcmp (clmodel->name, "progs/eyes.mdl") ) {
#else #else
if (!strcmp (clmodel->name, "progs/eyes.mdl" && gl_doubleeyes.value) ) { if (!strcmp (clmodel->name, "progs/eyes.mdl") && gl_doubleeyes.value) {
#endif #endif
glTranslatef (paliashdr->scale_origin[0], paliashdr->scale_origin[1], paliashdr->scale_origin[2] - (22 + 8)); glTranslatef (paliashdr->scale_origin[0], paliashdr->scale_origin[1], paliashdr->scale_origin[2] - (22 + 8));
// double size of eyes, since they are really hard to see in gl // double size of eyes, since they are really hard to see in gl

View file

@ -199,7 +199,7 @@ extern cvar_t gl_affinemodels;
extern cvar_t gl_fogblend; extern cvar_t gl_fogblend;
extern cvar_t gl_polyblend; extern cvar_t gl_polyblend;
extern cvar_t gl_keeptjunctions; extern cvar_t gl_keeptjunctions;
extern cvar_t gl_reporttjunctions; //extern cvar_t gl_reporttjunctions;
extern int gl_lightmap_format; extern int gl_lightmap_format;
extern int gl_solid_format; extern int gl_solid_format;

View file

@ -202,7 +202,7 @@ void R_Init (void)
Cvar_RegisterVariable (&gl_finish); Cvar_RegisterVariable (&gl_finish);
Cvar_RegisterVariable (&gl_keeptjunctions); Cvar_RegisterVariable (&gl_keeptjunctions);
Cvar_RegisterVariable (&gl_reporttjunctions); // Cvar_RegisterVariable (&gl_reporttjunctions);
R_InitBubble(); R_InitBubble();

View file

@ -33,31 +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);
/* palisade - i didn't add loring's 1999/12/30 patch directly, i edited it
by hand because he was behind on the updates...
it looks like he might have fudged the following, so i'm
not including it... here's what his "new" code looks like:
-#ifndef APIENTRY
- Mesa defines APIENTRY, but other versions of OpenGL do not
-#ifdef GLAPIENTRY
-#define APIENTRY GLAPIENTRY
-#else
-#define APIENTRY
-#endif
-#endif
note: the rest of his patch is further down /loring
*/
/* Mesa pre-3.1 defines APIENTRY instead of GLAPIENTRY */ /* Mesa pre-3.1 defines APIENTRY instead of GLAPIENTRY */
#ifndef GLAPIENTRY #ifndef GLAPIENTRY
#ifdef APIENTRY # ifdef APIENTRY
/* Create compatible GLAPIENTRY definition from APIENTRY */ /* Create compatible GLAPIENTRY definition from APIENTRY */
#define GLAPIENTRY APIENTRY # define GLAPIENTRY APIENTRY
#else # else
/* Error out -- it's pathological and we don't know what to do */ # define GLAPIENTRY
#error "I don't know what data type GLAPIENTRY is on this system." # endif
#endif
#endif #endif
/* continuation of loring's patch, he just #ifdef'd and #endif'd _WIN32 /* continuation of loring's patch, he just #ifdef'd and #endif'd _WIN32

View file

@ -206,7 +206,7 @@ void R_Init (void)
Cvar_RegisterVariable (&gl_nocolors); Cvar_RegisterVariable (&gl_nocolors);
Cvar_RegisterVariable (&gl_keeptjunctions); Cvar_RegisterVariable (&gl_keeptjunctions);
Cvar_RegisterVariable (&gl_reporttjunctions); // Cvar_RegisterVariable (&gl_reporttjunctions);
Cvar_RegisterVariable (&gl_doubleeyes); Cvar_RegisterVariable (&gl_doubleeyes);

View file

@ -35,6 +35,15 @@ 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);
/* Mesa pre-3.1 defines APIENTRY instead of GLAPIENTRY */
#ifndef GLAPIENTRY
# ifdef APIENTRY
/* Create compatible GLAPIENTRY definition from APIENTRY */
# define GLAPIENTRY APIENTRY
# else
# define GLAPIENTRY
# endif
#endif
#ifdef _WIN32 #ifdef _WIN32
// Function prototypes for the Texture Object Extension routines // Function prototypes for the Texture Object Extension routines
@ -240,10 +249,6 @@ void GL_Bind (int texnum);
#define TEXTURE0_SGIS 0x835E #define TEXTURE0_SGIS 0x835E
#define TEXTURE1_SGIS 0x835F #define TEXTURE1_SGIS 0x835F
#ifndef _WIN32
#define GLAPIENTRY /* */
#endif
typedef void (GLAPIENTRY *lpMTexFUNC) (GLenum, GLfloat, GLfloat); typedef void (GLAPIENTRY *lpMTexFUNC) (GLenum, GLfloat, GLfloat);
typedef void (GLAPIENTRY *lpSelTexFUNC) (GLenum); typedef void (GLAPIENTRY *lpSelTexFUNC) (GLenum);
extern lpMTexFUNC qglMTexCoord2fSGIS; extern lpMTexFUNC qglMTexCoord2fSGIS;