compositor-drm: Flush before pageflipping

This fixes compositor-drm flickering on r600.
dev
Benjamin Franzke 14 years ago committed by Kristian Høgsberg
parent fa4e2a7676
commit feb370e4ea
  1. 1
      compositor/compositor-drm.c

@ -65,6 +65,7 @@ drm_compositor_present(struct wlsc_compositor *ec)
GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT0,
GL_RENDERBUFFER, GL_RENDERBUFFER,
output->rbo[output->current]); output->rbo[output->current]);
glFlush();
drmModePageFlip(c->base.drm.fd, output->crtc_id, drmModePageFlip(c->base.drm.fd, output->crtc_id,
output->fb_id[output->current ^ 1], output->fb_id[output->current ^ 1],

Loading…
Cancel
Save