mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
removed the RB_CHECKOVERFLOW macro and some dead declarations
This commit is contained in:
parent
b0e283b249
commit
13c14ee2f2
2 changed files with 5 additions and 9 deletions
|
@ -1320,11 +1320,7 @@ struct shaderCommands_t
|
|||
|
||||
extern shaderCommands_t tess;
|
||||
|
||||
// @TODO: nuke all this
|
||||
void RB_BeginSurface( const shader_t* shader, int fogNum );
|
||||
void RB_EndSurface();
|
||||
void RB_CheckOverflow( int verts, int indexes );
|
||||
#define RB_CHECKOVERFLOW(v,i) RB_CheckOverflow(v,i)
|
||||
|
||||
void R_ComputeColors( const shaderStage_t* pStage, stageVars_t& svars, int firstVertex, int numVertexes );
|
||||
void R_ComputeTexCoords( const shaderStage_t* pStage, stageVars_t& svars, int firstVertex, int numVertexes, qbool ptrOpt );
|
||||
|
|
|
@ -80,7 +80,7 @@ void RB_AddQuadStampExt( vec3_t origin, vec3_t left, vec3_t up, byte *color, flo
|
|||
vec3_t normal;
|
||||
int ndx;
|
||||
|
||||
RB_CHECKOVERFLOW( 4, 6 );
|
||||
RB_CheckOverflow( 4, 6 );
|
||||
|
||||
ndx = tess.numVertexes;
|
||||
|
||||
|
@ -185,7 +185,7 @@ static void RB_SurfacePolychain( const srfPoly_t* p )
|
|||
{
|
||||
int i;
|
||||
|
||||
RB_CHECKOVERFLOW( p->numVerts, 3*(p->numVerts - 2) );
|
||||
RB_CheckOverflow( p->numVerts, 3*(p->numVerts - 2) );
|
||||
|
||||
int numv = tess.numVertexes;
|
||||
for ( i = 0; i < p->numVerts; ++i ) {
|
||||
|
@ -211,7 +211,7 @@ static void RB_SurfaceTriangles( srfTriangles_t* surf )
|
|||
{
|
||||
int i, ndx;
|
||||
|
||||
RB_CHECKOVERFLOW( surf->numVerts, surf->numIndexes );
|
||||
RB_CheckOverflow( surf->numVerts, surf->numIndexes );
|
||||
|
||||
unsigned int* tessIndexes = tess.indexes + tess.numIndexes;
|
||||
for ( i = 0; i < surf->numIndexes; ++i )
|
||||
|
@ -478,7 +478,7 @@ void RB_SurfaceMesh(md3Surface_t *surface) {
|
|||
backlerp = backEnd.currentEntity->e.backlerp;
|
||||
}
|
||||
|
||||
RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles*3 );
|
||||
RB_CheckOverflow( surface->numVerts, surface->numTriangles*3 );
|
||||
|
||||
LerpMeshVertexes (surface, backlerp);
|
||||
|
||||
|
@ -505,7 +505,7 @@ void RB_SurfaceMesh(md3Surface_t *surface) {
|
|||
|
||||
static void RB_SurfaceFace( srfSurfaceFace_t* surf )
|
||||
{
|
||||
RB_CHECKOVERFLOW( surf->numVerts, surf->numIndexes );
|
||||
RB_CheckOverflow( surf->numVerts, surf->numIndexes );
|
||||
|
||||
const int tessNumVertexes = tess.numVertexes;
|
||||
const int* surfIndexes = surf->indexes;
|
||||
|
|
Loading…
Reference in a new issue