mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
A more clean solution to this bug. Stop the renderer when the UI VM is not running, as no commands get issued in that case anyways.
This commit is contained in:
parent
d79a5487bc
commit
fe1e02e457
2 changed files with 17 additions and 16 deletions
|
@ -778,10 +778,6 @@ void CL_MapLoading( void ) {
|
|||
Q_strncpyz( cls.servername, "localhost", sizeof(cls.servername) );
|
||||
cls.state = CA_CHALLENGING; // so the connect screen is drawn
|
||||
Key_SetCatcher( 0 );
|
||||
/* Execute next line twice, so that the connect image gets written into both, front- and
|
||||
* back buffer. This is necessary to prevent a flashing screen on map startup, as the UI gets
|
||||
* killed for a short time and cannot update the screen. */
|
||||
SCR_UpdateScreen();
|
||||
SCR_UpdateScreen();
|
||||
clc.connectTime = -RETRANSMIT_TIMEOUT;
|
||||
NET_StringToAdr( cls.servername, &clc.serverAddress);
|
||||
|
|
|
@ -523,20 +523,25 @@ void SCR_UpdateScreen( void ) {
|
|||
}
|
||||
recursive = 1;
|
||||
|
||||
// if running in stereo, we need to draw the frame twice
|
||||
if ( cls.glconfig.stereoEnabled ) {
|
||||
SCR_DrawScreenField( STEREO_LEFT );
|
||||
SCR_DrawScreenField( STEREO_RIGHT );
|
||||
} else {
|
||||
SCR_DrawScreenField( STEREO_CENTER );
|
||||
}
|
||||
/* If there is no VM, there are also no rendering commands issued. Stop the renderer in
|
||||
* that case. */
|
||||
if(uivm)
|
||||
{
|
||||
// if running in stereo, we need to draw the frame twice
|
||||
if ( cls.glconfig.stereoEnabled ) {
|
||||
SCR_DrawScreenField( STEREO_LEFT );
|
||||
SCR_DrawScreenField( STEREO_RIGHT );
|
||||
} else {
|
||||
SCR_DrawScreenField( STEREO_CENTER );
|
||||
}
|
||||
|
||||
if ( com_speeds->integer ) {
|
||||
re.EndFrame( &time_frontend, &time_backend );
|
||||
} else {
|
||||
re.EndFrame( NULL, NULL );
|
||||
if ( com_speeds->integer ) {
|
||||
re.EndFrame( &time_frontend, &time_backend );
|
||||
} else {
|
||||
re.EndFrame( NULL, NULL );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
recursive = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue