Skip to content

Commit ba25be8

Browse files
committed
Fixed details load after reset on r1.
1 parent d6e2d6a commit ba25be8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Layers/xrRenderPC_R1/FStaticRender.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ void CRender::reset_end()
138138
if (L_Projector)
139139
L_Projector->invalidate();
140140

141+
// let's reload details while changed details options on vid_restart
142+
if (b_loaded && (dm_current_size != dm_size || ps_r__Detail_density != ps_current_detail_density))
143+
{
144+
Details = new CDetailManager();
145+
Details->Load();
146+
}
147+
141148
// Set this flag true to skip the first render frame,
142149
// that some data is not ready in the first frame (for example device camera position)
143150
m_bFirstFrameAfterReset = true;

0 commit comments

Comments
 (0)