Skip to content

Commit

Permalink
Fixed details load after reset on r1.
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowZerg committed Jul 6, 2018
1 parent d6e2d6a commit ba25be8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Layers/xrRenderPC_R1/FStaticRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ void CRender::reset_end()
if (L_Projector)
L_Projector->invalidate();

// let's reload details while changed details options on vid_restart
if (b_loaded && (dm_current_size != dm_size || ps_r__Detail_density != ps_current_detail_density))
{
Details = new CDetailManager();
Details->Load();
}

// Set this flag true to skip the first render frame,
// that some data is not ready in the first frame (for example device camera position)
m_bFirstFrameAfterReset = true;
Expand Down

0 comments on commit ba25be8

Please sign in to comment.