File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -1816,14 +1816,14 @@ void CClientState::FinishSignonState_New()
1816
1816
//
1817
1817
// This is pretty janky, but doesn't really have any cost (and even makes our one-frozen-frame load screen slightly
1818
1818
// less likely to trigger OS "not responding" warnings)
1819
- // extern void V_RenderVGuiOnly ();
1820
- // V_RenderVGuiOnly ();
1819
+ extern void V_RenderSwapBuffers ();
1820
+ V_RenderSwapBuffers ();
1821
1821
1822
1822
// Before we do anything with the whitelist, make sure we have the proper map pack mounted
1823
1823
// this will load the .bsp by setting the world model the string list at the hardcoded index 1.
1824
1824
cl.SetModel ( 1 );
1825
1825
1826
- // V_RenderVGuiOnly ();
1826
+ V_RenderSwapBuffers ();
1827
1827
1828
1828
// Check for a new whitelist. It's good to do it early in the connection process here because if we wait until later,
1829
1829
// the client may have loaded some files w/o the proper whitelist restrictions and we'd have to reload them.
Original file line number Diff line number Diff line change @@ -956,13 +956,13 @@ void EnableHDR( bool bEnable )
956
956
// / ancient bugs, hence the kill switch.
957
957
bool bUpdateOffline = mod_offline_hdr_switch.GetBool ();
958
958
#ifndef DEDICATED
959
- extern void V_RenderVGuiOnly ();
959
+ extern void V_RenderSwapBuffers ();
960
960
#endif
961
961
962
962
if ( bUpdateOffline )
963
963
{
964
964
#ifndef DEDICATED
965
- V_RenderVGuiOnly ();
965
+ V_RenderSwapBuffers ();
966
966
#endif
967
967
materials->ReleaseResources ();
968
968
}
@@ -986,7 +986,7 @@ void EnableHDR( bool bEnable )
986
986
#ifndef DEDICATED
987
987
if ( bUpdateOffline )
988
988
{
989
- V_RenderVGuiOnly ();
989
+ V_RenderSwapBuffers ();
990
990
}
991
991
#endif
992
992
}
Original file line number Diff line number Diff line change @@ -171,6 +171,18 @@ void V_RenderVGuiOnly( void )
171
171
Shader_SwapBuffers ();
172
172
}
173
173
174
+ void V_RenderSwapBuffers ( void )
175
+ {
176
+ materials->BeginFrame ( host_frametime );
177
+ g_EngineRenderer->FrameBegin ();
178
+
179
+ UpdateMaterialSystemConfig ();
180
+
181
+ g_EngineRenderer->FrameEnd ( );
182
+ materials->EndFrame ();
183
+
184
+ Shader_SwapBuffers ();
185
+ }
174
186
175
187
void FullViewColorAdjustment ( )
176
188
{
You can’t perform that action at this time.
0 commit comments