Skip to content
Snippets Groups Projects
Commit b44a83cf authored by Ove Kåven's avatar Ove Kåven Committed by Alexandre Julliard
Browse files

Wait for ShmCompletion during Flip.

parent 0adad95d
No related branches found
No related tags found
No related merge requests found
......@@ -971,6 +971,15 @@ static HRESULT WINAPI Xlib_IDirectDrawSurface4Impl_Flip(
This->t.xlib.image = iflipto->t.xlib.image;
iflipto->t.xlib.image = image;
#ifdef HAVE_LIBXXSHM
if (This->s.ddraw->e.xlib.xshm_active) {
/*
int compl = InterlockedExchange( &This->s.ddraw->e.xlib.xshm_compl, 0 );
if (compl) X11DRV_EVENT_WaitShmCompletion( compl );
*/
X11DRV_EVENT_WaitShmCompletions( This->s.ddraw->d.drawable );
}
#endif
Xlib_copy_surface_on_screen(This);
if (iflipto->s.palette && iflipto->s.palette->cm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment