Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VReaperV committed Sep 23, 2024
1 parent d3dc97c commit 724f0df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/engine/renderer/tr_bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6728,6 +6728,7 @@ void R_BuildCubeMaps()

int msecUnused1;
int msecUnused2;
// Material system writes culled surfaces for the next frame, so we need to render twice with it to cull correctly
if ( glConfig2.materialSystemAvailable ) {
tr.refdef.pixelTarget = nullptr;

Expand Down
1 change: 1 addition & 0 deletions src/engine/renderer/tr_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ void RE_RenderScene( const refdef_t *fd )

if ( showCubeProbe ) {
if ( glConfig2.materialSystemAvailable ) {
// Material system writes culled surfaces for the next frame, so we need to render twice with it to cull correctly
R_SyncRenderThread();
RE_RenderScene( &refdef );
}
Expand Down

0 comments on commit 724f0df

Please sign in to comment.