Bug fix #163: xr_glx_hybrid: Flickering issue
xr_glx_hybrid backend: Attempt to fix flickering issue. Thanks to cju for testing.
This commit is contained in:
parent
ebfd4c9bd5
commit
f1f7b050af
|
@ -1950,6 +1950,13 @@ paint_all(session_t *ps, XserverRegion region, XserverRegion region_real, win *t
|
||||||
paint_bind_tex_real(ps, &ps->tgt_buffer,
|
paint_bind_tex_real(ps, &ps->tgt_buffer,
|
||||||
ps->root_width, ps->root_height, ps->depth,
|
ps->root_width, ps->root_height, ps->depth,
|
||||||
!ps->o.glx_no_rebind_pixmap);
|
!ps->o.glx_no_rebind_pixmap);
|
||||||
|
// See #163
|
||||||
|
XSync(ps->dpy, False);
|
||||||
|
if (ps->o.vsync_use_glfinish)
|
||||||
|
glFinish();
|
||||||
|
else
|
||||||
|
glFlush();
|
||||||
|
glXWaitX();
|
||||||
glx_render(ps, ps->tgt_buffer.ptex, 0, 0, 0, 0,
|
glx_render(ps, ps->tgt_buffer.ptex, 0, 0, 0, 0,
|
||||||
ps->root_width, ps->root_height, 0, 1.0, false, region_real, NULL);
|
ps->root_width, ps->root_height, 0, 1.0, false, region_real, NULL);
|
||||||
// No break here!
|
// No break here!
|
||||||
|
|
Loading…
Reference in New Issue