Fix ending the previous frame if it didn't finish in time
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2795
This commit is contained in:
		
							parent
							
								
									2b577443e0
								
							
						
					
					
						commit
						ac97451586
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -501,8 +501,10 @@ static void VGA_VerticalTimer(Bitu val) { | |||
| //		 LOG_MSG("vgaerror: %f",error);
 | ||||
| 	PIC_AddEvent(VGA_VerticalTimer, (float)vga.draw.delay.vtotal ); | ||||
| 	if ( GCC_UNLIKELY( vga.draw.parts_left )) { | ||||
| 		LOG_MSG( "parts left: %d", vga.draw.parts_left ); | ||||
| 		LOG(LOG_VGAMISC,LOG_NORMAL)( "Parts left: %d", vga.draw.parts_left ); | ||||
| 		PIC_RemoveEvents( &VGA_DrawPart ); | ||||
| 		RENDER_EndUpdate(); | ||||
| 		vga.draw.parts_left = 0; | ||||
| 	} | ||||
| 	//Check if we can actually render, else skip the rest
 | ||||
| 	if (!RENDER_StartUpdate()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue