present: Don't abandon presents which are already queued for flip
Presents which are not marked 'queued' and are in the window present list are waiting for the flip event; discarding those won't work very well (it'll end up trashing displayed content for the next frame), so skip over those when looking for duplicate frame presents Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
		
							parent
							
								
									ca3a5b2a8f
								
							
						
					
					
						commit
						e487babd52
					
				|  | @ -689,6 +689,9 @@ present_pixmap(WindowPtr window, | ||||||
|             if (!vblank->pixmap) |             if (!vblank->pixmap) | ||||||
|                 continue; |                 continue; | ||||||
| 
 | 
 | ||||||
|  |             if (!vblank->queued) | ||||||
|  |                 continue; | ||||||
|  | 
 | ||||||
|             if (vblank->crtc != target_crtc || vblank->target_msc != target_msc) |             if (vblank->crtc != target_crtc || vblank->target_msc != target_msc) | ||||||
|                 continue; |                 continue; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue