comment cleanup

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@814 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2013-02-20 06:22:42 +00:00
parent bb9768bec6
commit f6c81660fa
1 changed files with 4 additions and 16 deletions

View File

@ -24,14 +24,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "quakedef.h" #include "quakedef.h"
extern cvar_t gl_fullbrights, r_drawflat, gl_overbright, r_oldwater; //johnfitz extern cvar_t gl_fullbrights, r_drawflat, gl_overbright, r_oldwater; //johnfitz
extern cvar_t gl_zfix; // QuakeSpasm z-fighting fix extern cvar_t gl_zfix; // QuakeSpasm z-fighting fix
int gl_lightmap_format; int gl_lightmap_format;
int lightmap_bytes; int lightmap_bytes;
#define BLOCK_WIDTH 128 //johnfitz -- was 128 #define BLOCK_WIDTH 128
#define BLOCK_HEIGHT 128 //johnfitz -- was 128 #define BLOCK_HEIGHT 128
gltexture_t *lightmap_textures[MAX_LIGHTMAPS]; //johnfitz -- changed to an array gltexture_t *lightmap_textures[MAX_LIGHTMAPS]; //johnfitz -- changed to an array
@ -563,7 +562,6 @@ void R_DrawBrushModel (entity_t *e)
// //
// draw it // draw it
// //
if (r_drawflat_cheatsafe) //johnfitz if (r_drawflat_cheatsafe) //johnfitz
glDisable(GL_TEXTURE_2D); glDisable(GL_TEXTURE_2D);
@ -630,7 +628,6 @@ void R_DrawBrushModel_ShowTris (entity_t *e)
// //
// draw it // draw it
// //
for (i=0 ; i<clmodel->nummodelsurfaces ; i++, psurf++) for (i=0 ; i<clmodel->nummodelsurfaces ; i++, psurf++)
{ {
pplane = psurf->plane; pplane = psurf->plane;
@ -793,7 +790,6 @@ void BuildSurfaceDisplayList (msurface_t *fa)
{ {
int i, lindex, lnumverts; int i, lindex, lnumverts;
medge_t *pedges, *r_pedge; medge_t *pedges, *r_pedge;
// int vertpage;
float *vec; float *vec;
float s, t; float s, t;
glpoly_t *poly; glpoly_t *poly;
@ -801,7 +797,6 @@ void BuildSurfaceDisplayList (msurface_t *fa)
// reconstruct the polygon // reconstruct the polygon
pedges = currentmodel->edges; pedges = currentmodel->edges;
lnumverts = fa->numedges; lnumverts = fa->numedges;
// vertpage = 0;
// //
// draw texture // draw texture
@ -857,7 +852,6 @@ void BuildSurfaceDisplayList (msurface_t *fa)
//johnfitz -- removed gl_keeptjunctions code //johnfitz -- removed gl_keeptjunctions code
poly->numverts = lnumverts; poly->numverts = lnumverts;
} }
/* /*
@ -884,10 +878,8 @@ void GL_BuildLightmaps (void)
lightmap_textures[i] = NULL; lightmap_textures[i] = NULL;
//johnfitz //johnfitz
gl_lightmap_format = GL_RGBA; //johnfitz gl_lightmap_format = GL_RGBA;//FIXME: hardcoded for now!
//johnfitz -- only support GL_RGB lightmaps
//kristian -- now with GL_BGRA support
switch (gl_lightmap_format) switch (gl_lightmap_format)
{ {
case GL_RGBA: case GL_RGBA:
@ -899,7 +891,6 @@ void GL_BuildLightmaps (void)
default: default:
Sys_Error ("GL_BuildLightmaps: bad lightmap format"); Sys_Error ("GL_BuildLightmaps: bad lightmap format");
} }
//johnfitz
for (j=1 ; j<MAX_MODELS ; j++) for (j=1 ; j<MAX_MODELS ; j++)
{ {
@ -1093,8 +1084,6 @@ void R_BuildLightMap (msurface_t *surf, byte *dest, int stride)
// bound, invert, and shift // bound, invert, and shift
// store: // store:
//johnfitz -- only support GL_RGB lightmaps
switch (gl_lightmap_format) switch (gl_lightmap_format)
{ {
case GL_RGBA: case GL_RGBA:
@ -1152,7 +1141,6 @@ void R_BuildLightMap (msurface_t *surf, byte *dest, int stride)
default: default:
Sys_Error ("R_BuildLightMap: bad lightmap format"); Sys_Error ("R_BuildLightMap: bad lightmap format");
} }
//johnfitz
} }
/* /*