summaryrefslogtreecommitdiff
path: root/src/renderer/tr_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/tr_main.c')
-rw-r--r--src/renderer/tr_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/renderer/tr_main.c b/src/renderer/tr_main.c
index 1a1bab8c..880850ef 100644
--- a/src/renderer/tr_main.c
+++ b/src/renderer/tr_main.c
@@ -913,7 +913,6 @@ static qboolean SurfIsOffscreen( const drawSurf_t *drawSurf, vec4_t clipDest[128
for ( i = 0; i < tess.numIndexes; i += 3 )
{
vec3_t normal;
- float dot;
float len;
VectorSubtract( tess.xyz[tess.indexes[i]], tr.viewParms.or.origin, normal );
@@ -924,7 +923,7 @@ static qboolean SurfIsOffscreen( const drawSurf_t *drawSurf, vec4_t clipDest[128
shortest = len;
}
- if ( ( dot = DotProduct( normal, tess.normal[tess.indexes[i]] ) ) >= 0 )
+ if ( DotProduct( normal, tess.normal[tess.indexes[i]] ) >= 0 )
{
numTriangles--;
}
@@ -1270,7 +1269,6 @@ void R_AddEntitySurfaces (void) {
if ( (ent->e.renderfx & RF_THIRD_PERSON) && !tr.viewParms.isPortal) {
break;
}
- shader = R_GetShaderByHandle( ent->e.customShader );
R_AddDrawSurf( &entitySurface, tr.defaultShader, 0, 0 );
break;
default: