Skip to content

Commit bf25cd7

Browse files
committed
Remove a few unread variables
1 parent 8747521 commit bf25cd7

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

src/engine/renderer/tr_backend.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,9 +2660,6 @@ static void RB_RenderView( bool depthPass )
26602660
backEnd.isHyperspace = false;
26612661
}
26622662

2663-
// we will only draw a sun if there was sky rendered in this view
2664-
backEnd.skyRenderedThisView = false;
2665-
26662663
GL_CheckErrors();
26672664

26682665
if( depthPass ) {

src/engine/renderer/tr_bsp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3335,8 +3335,6 @@ static void R_LoadFogs( lump_t *l, lump_t *brushesLump, lump_t *sidesLump )
33353335
if ( out->originalBrushNumber == -1 )
33363336
{
33373337
s_worldData.globalFog = i + 1;
3338-
VectorCopy( shader->fogParms.color, s_worldData.globalOriginalFog );
3339-
s_worldData.globalOriginalFog[ 3 ] = shader->fogParms.depthForOpaque;
33403338
}
33413339

33423340
// set the gradient vector

src/engine/renderer/tr_local.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,11 +1727,6 @@ enum
17271727
fog_t *fogs;
17281728

17291729
int globalFog; // Arnout: index of global fog
1730-
vec4_t globalOriginalFog; // Arnout: to be able to restore original global fog
1731-
vec4_t globalTransStartFog; // Arnout: start fog for switch fog transition
1732-
vec4_t globalTransEndFog; // Arnout: end fog for switch fog transition
1733-
int globalFogTransStartTime;
1734-
int globalFogTransEndTime;
17351730

17361731
vec3_t lightGridOrigin;
17371732
vec3_t lightGridSize;
@@ -2193,7 +2188,6 @@ enum
21932188
visTestQueries_t visTestQueries[ MAX_VISTESTS ];
21942189
bool isHyperspace;
21952190
trRefEntity_t *currentEntity;
2196-
bool skyRenderedThisView; // flag for drawing sun
21972191
bool dirtyDepthBuffer;
21982192
bool postDepthLightTileRendered = false;
21992193

src/engine/renderer/tr_sky.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ void Tess_StageIteratorSky()
169169
// back to standard depth range
170170
glDepthRange( 0.0, 1.0 );
171171

172-
// note that sky was drawn so we will draw a sun later
173-
backEnd.skyRenderedThisView = true;
174-
175172
// Restore matrices if we're rendering in a portal
176173
if ( backEnd.viewParms.portalLevel > 0 ) {
177174
MatrixCopy( currentProjectionMatrix, glState.projectionMatrix[glState.stackIndex] );

0 commit comments

Comments
 (0)