Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/engine/renderer/tr_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ enum
surfaceType_t *surface; // any of surface*_t
shader_t *shader;
uint64_t sort;
bool bspSurface;
bool bspSurface; // only for the stationary part of the world, *not* BSP models
int fog;
int portalNum = -1;

Expand Down
3 changes: 2 additions & 1 deletion src/engine/renderer/tr_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ void R_AddBSPModelSurfaces( trRefEntity_t *ent )

for ( i = 0; i < bspModel->numSurfaces; i++ )
{
R_AddWorldSurface( bspModel->firstSurface + i, fogNum, -1, FRUSTUM_CLIPALL );
bspSurface_t *surf = bspModel->firstSurface + i;
R_AddDrawSurf( surf->data, surf->shader, surf->lightmapNum, fogNum );
}
}

Expand Down
Loading