Commit b44a83cf authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Wait for ShmCompletion during Flip.

parent 0adad95d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment