Skip to content

Commit

Permalink
Fix gcc warnings in Rend2.
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Oct 26, 2012
1 parent f4ca81c commit 3814f04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/rend2/tr_backend.c
Expand Up @@ -763,7 +763,7 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) {
{
depth[0] = 0;
depth[1] = 0.3f;
qglDepthRange (0, 0.3);
qglDepthRange (depth[0], depth[1]);
}
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion code/rend2/tr_bsp.c
Expand Up @@ -2172,7 +2172,7 @@ static void R_LoadSurfaces( lump_t *surfs, lump_t *verts, lump_t *indexLump ) {
{
//ri.Printf(PRINT_ALL, "Found!\n");
if (size != sizeof(float) * 3 * (verts->filelen / sizeof(*dv)))
ri.Error(ERR_DROP, "Bad size for %s (%i, expected %i)!\n", filename, size, (int)(sizeof(float)) * 3 * (verts->filelen / sizeof(*dv)));
ri.Error(ERR_DROP, "Bad size for %s (%i, expected %i)!\n", filename, size, (int)((sizeof(float)) * 3 * (verts->filelen / sizeof(*dv))));
}
}

Expand Down
5 changes: 3 additions & 2 deletions code/rend2/tr_shade.c
Expand Up @@ -1342,15 +1342,16 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
for ( stage2 = stage + 1; stage2 < MAX_SHADER_STAGES; stage2++ )
{
shaderStage_t *pStage2 = input->xstages[stage2];
unsigned int srcBlendBits, dstBlendBits;
unsigned int srcBlendBits;
//unsigned int dstBlendBits;

if ( !pStage2 )
{
break;
}

srcBlendBits = pStage2->stateBits & GLS_SRCBLEND_BITS;
dstBlendBits = pStage2->stateBits & GLS_DSTBLEND_BITS;
//dstBlendBits = pStage2->stateBits & GLS_DSTBLEND_BITS;

if (srcBlendBits == GLS_SRCBLEND_DST_COLOR)
{
Expand Down

0 comments on commit 3814f04

Please sign in to comment.