Skip to content

Commit

Permalink
engine: client: reset video after last screen update in begin loading…
Browse files Browse the repository at this point in the history
… plaque. Because update screen supposedly should draw the whole screen now, gl_clear hack shouldn't be required anymore
  • Loading branch information
a1batross committed Jul 10, 2024
1 parent 30b78d9 commit 0da7ffe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions engine/client/cl_scrn.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,8 @@ SCR_BeginLoadingPlaque
*/
void SCR_BeginLoadingPlaque( qboolean is_background )
{
float oldclear = 0;;
S_StopAllSounds( true );
cl.audio_prepped = false; // don't play ambients
cl.video_prepped = false;

oldclear = gl_clear.value;

if( cls.key_dest == key_menu && !cls.changedemo && !is_background )
{
Expand All @@ -446,13 +442,14 @@ void SCR_BeginLoadingPlaque( qboolean is_background )
if( cls.key_dest == key_console )
return;

gl_clear.value = 0.0f;
if( is_background ) IN_MouseSavePos( );
cls.draw_changelevel = !is_background;
SCR_UpdateScreen();

// set video_prepped after update screen, so engine can draw last remaining frame
cl.video_prepped = false;
cls.disable_screen = host.realtime;
cl.background = is_background; // set right state before svc_serverdata is came
gl_clear.value = oldclear;

// SNDDMA_LockSound();
}
Expand Down

0 comments on commit 0da7ffe

Please sign in to comment.