Skip to content

Commit

Permalink
R_MarkLeaves: memset
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed May 11, 2024
1 parent fc576b8 commit d8a7050
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/engine/renderer/tr_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,7 @@ static void R_MarkLeaves()
// hasn't changed, we don't need to mark everything again
if( tr.refdef.areamaskModified ) {
// remark ALL cached visClusters
for ( i = 0; i < MAX_VISCOUNTS; i++ ) {
tr.visClusters[ i ] = -1;
}
memset( tr.visClusters, -1, MAX_VISCOUNTS * sizeof( int ) );
tr.visIndex = 0;
} else {
for ( i = 0; i < MAX_VISCOUNTS; i++ ) {
Expand Down

0 comments on commit d8a7050

Please sign in to comment.