Skip to content

Commit

Permalink
Vulkan: Remove redundant calls to R_SetupEntityLighting()
Browse files Browse the repository at this point in the history
  • Loading branch information
JKSunny committed Oct 23, 2024
1 parent 0c93a95 commit 8114be8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions codemp/rd-vulkan/tr_ghoul2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3349,11 +3349,6 @@ void R_AddGhoulSurfaces( trRefEntity_t *ent, int entityNum ) {
assert(ghoul2.size()<=255);
modelList[255]=548;

// set up lighting now that we know we aren't culled
if ( !personalModel || r_shadows->integer > 1 ) {
R_SetupEntityLighting( &tr.refdef, ent );
}

// see if we are in a fog volume
fogNum = R_GComputeFogNum( ent );

Expand Down
7 changes: 0 additions & 7 deletions codemp/rd-vulkan/tr_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,6 @@ void R_AddMD3Surfaces( trRefEntity_t *ent, int entityNum ) {
return;
}

//
// set up lighting now that we know we aren't culled
//
if ( !personalModel || r_shadows->integer > 1 ) {
R_SetupEntityLighting( &tr.refdef, ent );
}

#ifdef USE_PMLIGHT
numDlights = 0;
if (r_dlightMode->integer >= 2 && (!personalModel || tr.viewParms.portalView != PV_NONE)) {
Expand Down
3 changes: 0 additions & 3 deletions codemp/rd-vulkan/tr_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,6 @@ void R_AddBrushModelSurfaces ( trRefEntity_t *ent, int entityNum ) {
for ( s = 0; s < bmodel->numSurfaces; s++ ) {
R_AddWorldSurface( bmodel->firstSurface + s, ent, entityNum, qtrue );
}

R_SetupEntityLighting( &tr.refdef, ent );

R_TransformDlights( tr.viewParms.num_dlights, tr.viewParms.dlights, &tr.ori );

for ( i = 0; i < tr.viewParms.num_dlights; i++ ) {
Expand Down

0 comments on commit 8114be8

Please sign in to comment.